Add EnsureComplete config check during phase apply call
There is need to check config object in scope of phase apply function. Return an error if Config object is incomplete. Change-Id: Ibd263375d5fb95810b885c77c4cfe605588eb308 Relates-To: #213 Closes: #213 Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
This commit is contained in:
@@ -53,6 +53,10 @@ func (applyOptions *Options) Run() error {
|
||||
|
||||
globalConf := applyOptions.RootSettings.Config
|
||||
|
||||
if err = globalConf.EnsureComplete(); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
kustomizePath, err := globalConf.CurrentContextEntryPoint(applyOptions.PhaseName)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user