Skip to content

Commit

Permalink
Fix image.pullSecrets configuration for NewDDAWithOperator (#1327)
Browse files Browse the repository at this point in the history
  • Loading branch information
fanny-jiang authored Dec 30, 2024
1 parent 5c86ad1 commit 658f6c4
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions components/datadog/apps/dda/datadogagent.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
},
},
},
},
Expand Down

0 comments on commit 658f6c4

Please sign in to comment.