From 658f6c49e27c40519726fc17d76fb1d77f75e491 Mon Sep 17 00:00:00 2001 From: Fanny Jiang Date: Mon, 30 Dec 2024 11:19:29 -0500 Subject: [PATCH] Fix image.pullSecrets configuration for NewDDAWithOperator (#1327) --- components/datadog/apps/dda/datadogagent.go | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/components/datadog/apps/dda/datadogagent.go b/components/datadog/apps/dda/datadogagent.go index 926a53b6f..52bfc7546 100644 --- a/components/datadog/apps/dda/datadogagent.go +++ b/components/datadog/apps/dda/datadogagent.go @@ -266,22 +266,28 @@ func (d datadogAgentWorkload) defaultDDAYamlTransformations() []yaml.Transformat imgPullSecretOverride := map[string]interface{}{ "nodeAgent": map[string]interface{}{ "image": map[string]interface{}{ - "pullSecrets": map[string]interface{}{ - "name": d.imagePullSecret.Metadata.Name(), + "pullSecrets": []map[string]interface{}{ + { + "name": d.imagePullSecret.Metadata.Name(), + }, }, }, }, "clusterAgent": map[string]interface{}{ "image": map[string]interface{}{ - "pullSecrets": map[string]interface{}{ - "name": d.imagePullSecret.Metadata.Name(), + "pullSecrets": []map[string]interface{}{ + { + "name": d.imagePullSecret.Metadata.Name(), + }, }, }, }, "clusterChecksRunner": map[string]interface{}{ "image": map[string]interface{}{ - "pullSecrets": map[string]interface{}{ - "name": d.imagePullSecret.Metadata.Name(), + "pullSecrets": []map[string]interface{}{ + { + "name": d.imagePullSecret.Metadata.Name(), + }, }, }, },