Skip to content

Commit

Permalink
fix signatures
Browse files Browse the repository at this point in the history
  • Loading branch information
boonware committed Dec 11, 2024
1 parent c736c4f commit 6867978
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/k8s/object/builders/agent/secrets/config_merger.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func NewConfigMergerBuilder(client v1.CoreV1Interface) DefaultConfigMerger {
}
}

func (c *DefaultConfigMerger) MergeConfigurationYaml(agentConfiguration string) []byte {
func (c DefaultConfigMerger) MergeConfigurationYaml(agentConfiguration string) []byte {
agentData := make(map[string]interface{})
err := yaml.Unmarshal([]byte([]byte(agentConfiguration)), agentData)
config := []byte{}
Expand All @@ -57,7 +57,7 @@ func (c *DefaultConfigMerger) MergeConfigurationYaml(agentConfiguration string)
return config
}

func (c *DefaultConfigMerger) mergeConfig(agentData, configMapData map[string]interface{}) map[string]interface{} {
func (c DefaultConfigMerger) mergeConfig(agentData, configMapData map[string]interface{}) map[string]interface{} {
for key, configMapValue := range configMapData {
if agentValue, ok := agentData[key]; ok {
agentValueKind := reflect.TypeOf(agentValue).Kind()
Expand All @@ -73,7 +73,7 @@ func (c *DefaultConfigMerger) mergeConfig(agentData, configMapData map[string]in
return agentData
}

func (c *DefaultConfigMerger) fetchConfigMaps() []apiV1.ConfigMap {
func (c DefaultConfigMerger) fetchConfigMaps() []apiV1.ConfigMap {
configMaps := []apiV1.ConfigMap{}
c.logger.Info(fmt.Sprintf("Fetching agent configmaps with label '%s'", ConfigMapLabel))
configMapList, err := c.k8sClient.ConfigMaps("").List(context.TODO(), metav1.ListOptions{LabelSelector: ConfigMapLabel})
Expand Down

0 comments on commit 6867978

Please sign in to comment.