diff --git a/README.md b/README.md index 00ed76ab..c75f3567 100644 --- a/README.md +++ b/README.md @@ -134,7 +134,7 @@ placement: # --docker-username=AWS \ # --docker-password=$(aws --region us-west-2 ecr get-login-password) \ # --namespace=brupop-bottlerocket-aws -#image_pull_secrets: |- +#imagePullSecrets: # - name: "brupop" # External load balancer setting. diff --git a/deploy/charts/bottlerocket-update-operator/README.md b/deploy/charts/bottlerocket-update-operator/README.md index 66a58302..07c9a107 100644 --- a/deploy/charts/bottlerocket-update-operator/README.md +++ b/deploy/charts/bottlerocket-update-operator/README.md @@ -120,7 +120,7 @@ placement: # --docker-username=AWS \ # --docker-password=$(aws --region us-west-2 ecr get-login-password) \ # --namespace=brupop-bottlerocket-aws -#image_pull_secrets: |- +#imagePullSecrets: # - name: "brupop" # External load balancer setting. diff --git a/deploy/charts/bottlerocket-update-operator/templates/agent-daemonset.yaml b/deploy/charts/bottlerocket-update-operator/templates/agent-daemonset.yaml index ef0ccbbf..d39a5c54 100644 --- a/deploy/charts/bottlerocket-update-operator/templates/agent-daemonset.yaml +++ b/deploy/charts/bottlerocket-update-operator/templates/agent-daemonset.yaml @@ -89,9 +89,9 @@ spec: topologySpreadConstraints: {{- tpl (toYaml .) $ | nindent 8 }} {{- end }} - {{- if ((.Values.image_pull_secrets)) }} - image_pull_secrets: - {{ .Values.image_pull_secrets }} + {{- with .Values.imagePullSecrets }} + imagePullSecrets: + {{- toYaml . | nindent 8 }} {{- end }} volumes: - hostPath: diff --git a/deploy/charts/bottlerocket-update-operator/templates/controller-deployment.yaml b/deploy/charts/bottlerocket-update-operator/templates/controller-deployment.yaml index 82e55f89..00e6212b 100644 --- a/deploy/charts/bottlerocket-update-operator/templates/controller-deployment.yaml +++ b/deploy/charts/bottlerocket-update-operator/templates/controller-deployment.yaml @@ -83,8 +83,8 @@ spec: {{- if .Values.placement.controller.priorityClassName }} priorityClassName: {{ .Values.placement.controller.priorityClassName | quote }} {{- end }} - {{ if ((.Values.image_pull_secrets)) }} - image_pull_secrets: - {{ .Values.image_pull_secrets }} - {{ end }} + {{- with .Values.imagePullSecrets }} + imagePullSecrets: + {{- toYaml . | nindent 8 }} + {{- end }} serviceAccountName: brupop-controller-service-account diff --git a/deploy/charts/bottlerocket-update-operator/values.yaml b/deploy/charts/bottlerocket-update-operator/values.yaml index af74d75d..f9a68d58 100644 --- a/deploy/charts/bottlerocket-update-operator/values.yaml +++ b/deploy/charts/bottlerocket-update-operator/values.yaml @@ -51,7 +51,7 @@ placement: # --docker-username=AWS \ # --docker-password=$(aws --region us-west-2 ecr get-login-password) \ # --namespace=brupop-bottlerocket-aws -#image_pull_secrets: |- +#imagePullSecrets: # - name: "brupop" # External load balancer setting.