upgrade kustomize-in-kubectl to v4.4.1

This commit is contained in:
natasha41575
2021-11-12 10:57:32 -08:00
parent 763916aa2d
commit 5991d3ded0
67 changed files with 7605 additions and 1696 deletions

View File

@@ -231,10 +231,10 @@ func UpdateResourceOptions(rm resmap.ResMap) (resmap.ResMap, error) {
if err := r.SetAnnotations(annotations); err != nil {
return nil, err
}
r.SetOptions(types.NewGenArgs(
&types.GeneratorArgs{
Behavior: behavior,
Options: &types.GeneratorOptions{DisableNameSuffixHash: !needsHash}}))
if needsHash {
r.EnableHashSuffix()
}
r.SetBehavior(types.NewGenerationBehavior(behavior))
}
return rm, nil
}