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(), + }, }, }, },