fix the missing fields in all edit commands

This commit is contained in:
Jingfang Liu
2018-12-14 13:11:04 -08:00
parent f7414fec08
commit d0e4db74b7
3 changed files with 8 additions and 1 deletions

View File

@@ -153,6 +153,10 @@ func (mf *kustomizationFile) Read() (*types.Kustomization, error) {
return nil, err
}
k.DealWithDeprecatedFields()
msgs := k.DealWithMissingFields()
if len(msgs) > 0 {
log.Printf(strings.Join(msgs, "\n"))
}
err = mf.parseCommentedFields(data)
if err != nil {
return nil, err