fix invalid managed-by label value

This commit is contained in:
Donny Xia
2020-11-16 14:00:14 -08:00
parent a25429ae3b
commit 98900c43f7
2 changed files with 10 additions and 1 deletions

View File

@@ -85,7 +85,7 @@ func (b *Kustomizer) Run(path string) (resmap.ResMap, error) {
t := builtins.LabelTransformerPlugin{
Labels: map[string]string{
konfig.ManagedbyLabelKey: fmt.Sprintf(
"kustomize-%s", provenance.GetProvenance().Version)},
"kustomize-%s", provenance.GetProvenance().Semver())},
FieldSpecs: []types.FieldSpec{{
Path: "metadata/labels",
CreateIfNotPresent: true,