From b7f0dd7f3cbf54789f4bd6997a4387ea6e91b13f Mon Sep 17 00:00:00 2001 From: "M. Mert Yildiran" Date: Thu, 16 Mar 2023 02:34:41 +0300 Subject: [PATCH] :hammer: Rename the newly added `customLabels` field to `resourceLabels` in the config --- config/configStruct.go | 2 +- kubernetes/utils.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/configStruct.go b/config/configStruct.go index 63d2dd5ce..92cd98f2e 100644 --- a/config/configStruct.go +++ b/config/configStruct.go @@ -37,7 +37,7 @@ type ConfigStruct struct { HeadlessMode bool `yaml:"headless" default:"false"` License string `yaml:"license" default:""` Scripting configStructs.ScriptingConfig `yaml:"scripting"` - CustomLabels map[string]string `yaml:"customLabels" default:"{}"` + ResourceLabels map[string]string `yaml:"resourceLabels" default:"{}"` } func (config *ConfigStruct) SetDefaults() { diff --git a/kubernetes/utils.go b/kubernetes/utils.go index d5528386a..eacc9fe4b 100644 --- a/kubernetes/utils.go +++ b/kubernetes/utils.go @@ -59,7 +59,7 @@ func buildWithDefaultLabels(labels map[string]string, provider *Provider) map[st labels["LabelManagedBy"] = provider.managedBy labels["LabelCreatedBy"] = provider.createdBy - for k, v := range config.Config.CustomLabels { + for k, v := range config.Config.ResourceLabels { labels[k] = v }