Skip to content

Commit

Permalink
eksconfig: fix empty CFN YAML file path
Browse files Browse the repository at this point in the history
Signed-off-by: Gyuho Lee <[email protected]>
  • Loading branch information
gyuho committed Jun 13, 2020
1 parent 79aa335 commit 9cc3834
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions eksconfig/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -1093,6 +1093,12 @@ func (cfg *Config) validateConfig() error {
case false: // use existing one
}

if cfg.Status == nil {
cfg.Status = &Status{Up: false}
}
if cfg.Status.ClusterCFNStackYAMLFilePath == "" {
cfg.Status.ClusterCFNStackYAMLFilePath = strings.ReplaceAll(cfg.ConfigPath, ".yaml", "") + ".cluster.cfn.yaml"
}
return nil
}

Expand Down

0 comments on commit 9cc3834

Please sign in to comment.