Skip to content

Commit

Permalink
add imagePullSecret to manager deployment.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
fanny-jiang committed Mar 21, 2024
1 parent 7dc580a commit 9ba4e8a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,7 @@ spec:
path: /healthz/
port: 8081
periodSeconds: 10
imagePullSecrets:
- name: registry-credentials
terminationGracePeriodSeconds: 10
serviceAccountName: controller-manager
2 changes: 1 addition & 1 deletion test/e2e/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func operatorTransformationFunc() func(state map[string]interface{}, opts ...pul
if imageTag != "" && state["kind"] == "Deployment" && name == "datadog-operator-manager" {
template := state["spec"].(map[string]interface{})["template"]
templateSpec := template.(map[string]interface{})["spec"]
templateSpec.(map[string]interface{})["imagePullSecrets"] = []map[string]interface{}{{"name": imagePullSecretName}}
//templateSpec.(map[string]interface{})["imagePullSecrets"] = []map[string]interface{}{{"name": imagePullSecretName}}
containers := templateSpec.(map[string]interface{})["containers"]
container := containers.([]interface{})[0]
container.(map[string]interface{})["image"] = imageTag
Expand Down

0 comments on commit 9ba4e8a

Please sign in to comment.