Add kustomize build flag --enable_managedby_label

This commit is contained in:
Jingfang Liu
2020-06-08 15:00:35 -07:00
parent 546a7386ff
commit 1644fdd076
6 changed files with 52 additions and 5 deletions

View File

@@ -30,4 +30,10 @@ const (
// A program name, for use in help, finding the XDG_CONFIG_DIR, etc.
ProgramName = "kustomize"
// Label key that indicates the resources are built from Kustomize
ManagedbyLabelKey = "app.kubernetes.io/managed-by"
// An environment variable to turn on/off adding the ManagedByLabelKey
EnableManagedbyLabelEnv = "KUSTOMIZE_ENABLE_MANAGEDBY_LABEL"
)