🔨 Rename the newly added customLabels field to resourceLabels in the config

This commit is contained in:
M. Mert Yildiran 2023-03-16 02:34:41 +03:00
parent d9ec538aff
commit b7f0dd7f3c
No known key found for this signature in database
GPG Key ID: DA5D6DCBB758A461
2 changed files with 2 additions and 2 deletions

View File

@ -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() {

View File

@ -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
}