Feat cronjob #23

Merged
metal3d merged 28 commits from feat-cronjob into master 2022-06-10 14:15:18 +00:00
Showing only changes of commit 75500c0830 - Show all commits

View File

@@ -31,7 +31,8 @@ func NewConfigMap(name, path string) *ConfigMap {
base.Metadata.Name = ReleaseNameTpl + "-" + name base.Metadata.Name = ReleaseNameTpl + "-" + name
base.Metadata.Labels[K+"/component"] = name base.Metadata.Labels[K+"/component"] = name
if path != "" { if path != "" {
base.Metadata.Labels[K+"/path"] = path //base.Metadata.Labels[K+"/path"] = path
base.Metadata.Labels[K+"/path"] = `{{ "` + path + `" | quote }}`
} }
return &ConfigMap{ return &ConfigMap{
K8sBase: base, K8sBase: base,
@@ -96,7 +97,7 @@ func NewSecret(name, path string) *Secret {
base.Metadata.Name = ReleaseNameTpl + "-" + name base.Metadata.Name = ReleaseNameTpl + "-" + name
base.Metadata.Labels[K+"/component"] = name base.Metadata.Labels[K+"/component"] = name
if path != "" { if path != "" {
base.Metadata.Labels[K+"/path"] = path base.Metadata.Labels[K+"/path"] = `{{ "` + path + `" | quote }}`
} }
return &Secret{ return &Secret{
K8sBase: base, K8sBase: base,