support option for adding managed-by label

This commit is contained in:
Jingfang Liu
2020-06-04 11:37:56 -07:00
parent 952a2ebbf4
commit 4b117c4736
4 changed files with 66 additions and 1 deletions

View File

@@ -18,6 +18,11 @@ type Options struct {
// order as specified by the kustomization file(s).
DoLegacyResourceSort bool
// When true, a label
// app.kubernetes.io/managed-by: kustomize-<version>
// is added to all the resources in the build out.
AddManagedbyLabel bool
// Restrictions on what can be loaded from the file system.
// See type definition.
LoadRestrictions types.LoadRestrictions