Skip to content

Commit 9cc3834

Browse files
committed
eksconfig: fix empty CFN YAML file path
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
1 parent 79aa335 commit 9cc3834

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

eksconfig/config.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1093,6 +1093,12 @@ func (cfg *Config) validateConfig() error {
10931093
case false: // use existing one
10941094
}
10951095

1096+
if cfg.Status == nil {
1097+
cfg.Status = &Status{Up: false}
1098+
}
1099+
if cfg.Status.ClusterCFNStackYAMLFilePath == "" {
1100+
cfg.Status.ClusterCFNStackYAMLFilePath = strings.ReplaceAll(cfg.ConfigPath, ".yaml", "") + ".cluster.cfn.yaml"
1101+
}
10961102
return nil
10971103
}
10981104

0 commit comments

Comments
 (0)