mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-07-04 03:48:58 +00:00
🔨 Rename the newly added customLabels
field to resourceLabels
in the config
This commit is contained in:
parent
d9ec538aff
commit
b7f0dd7f3c
@ -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() {
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user