Merge pull request #722 from Liujingfang1/removeDeprecates

remove patches and imageTags from kustomization.yaml
This commit is contained in:
Kubernetes Prow Robot
2019-01-25 14:41:06 -08:00
committed by GitHub
11 changed files with 24 additions and 344 deletions

View File

@@ -58,13 +58,12 @@ func NewKustTarget(
if err != nil {
return nil, err
}
content = types.DealWithDeprecatedFields(content)
var k types.Kustomization
err = unmarshal(content, &k)
if err != nil {
return nil, err
}
k.DealWithDeprecatedFields()
msgs, errs := k.EnforceFields()
if len(errs) > 0 {
return nil, fmt.Errorf(strings.Join(errs, "\n"))