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:
Ruslan Aliev
2020-05-14 06:04:22 -05:00
parent 98f14aaa93
commit 36954989b4
+4
View File
@@ -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