From dc9b19820866ae41c709ce930474c94d7710375b Mon Sep 17 00:00:00 2001 From: Patrice Ferlet Date: Wed, 1 Jun 2022 16:22:45 +0200 Subject: [PATCH] Quote path label --- helm/configAndSecretMap.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/helm/configAndSecretMap.go b/helm/configAndSecretMap.go index 3fe07fe..9b5f6b2 100644 --- a/helm/configAndSecretMap.go +++ b/helm/configAndSecretMap.go @@ -31,7 +31,8 @@ func NewConfigMap(name, path string) *ConfigMap { base.Metadata.Name = ReleaseNameTpl + "-" + name base.Metadata.Labels[K+"/component"] = name if path != "" { - base.Metadata.Labels[K+"/path"] = path + //base.Metadata.Labels[K+"/path"] = path + base.Metadata.Labels[K+"/path"] = `{{ "` + path + `" | quote }}` } return &ConfigMap{ K8sBase: base, @@ -96,7 +97,7 @@ func NewSecret(name, path string) *Secret { base.Metadata.Name = ReleaseNameTpl + "-" + name base.Metadata.Labels[K+"/component"] = name if path != "" { - base.Metadata.Labels[K+"/path"] = path + base.Metadata.Labels[K+"/path"] = `{{ "` + path + `" | quote }}` } return &Secret{ K8sBase: base,