mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-07-06 21:09:19 +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"`
|
HeadlessMode bool `yaml:"headless" default:"false"`
|
||||||
License string `yaml:"license" default:""`
|
License string `yaml:"license" default:""`
|
||||||
Scripting configStructs.ScriptingConfig `yaml:"scripting"`
|
Scripting configStructs.ScriptingConfig `yaml:"scripting"`
|
||||||
CustomLabels map[string]string `yaml:"customLabels" default:"{}"`
|
ResourceLabels map[string]string `yaml:"resourceLabels" default:"{}"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (config *ConfigStruct) SetDefaults() {
|
func (config *ConfigStruct) SetDefaults() {
|
||||||
|
@ -59,7 +59,7 @@ func buildWithDefaultLabels(labels map[string]string, provider *Provider) map[st
|
|||||||
labels["LabelManagedBy"] = provider.managedBy
|
labels["LabelManagedBy"] = provider.managedBy
|
||||||
labels["LabelCreatedBy"] = provider.createdBy
|
labels["LabelCreatedBy"] = provider.createdBy
|
||||||
|
|
||||||
for k, v := range config.Config.CustomLabels {
|
for k, v := range config.Config.ResourceLabels {
|
||||||
labels[k] = v
|
labels[k] = v
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user