Skip to content

Commit

Permalink
Clean way to set imagePullSecrets and respect list
Browse files Browse the repository at this point in the history
Signed-off-by: Grégoire Bellon-Gervais <[email protected]>
  • Loading branch information
albundy83 authored and outscale-hmi committed Sep 10, 2024
1 parent 21989d0 commit 578494e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion deploy/k8s-osc-ccm/templates/osc-ccm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,10 @@ spec:
{{- end}}
spec:
serviceAccountName: cloud-controller-manager
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
- name: {{ .Values.imagePullSecrets | default "registry-dockerconfigjson" }}
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: osc-cloud-controller-manager
image: {{ .Values.image.repository }}:{{ .Values.image.tag }}
Expand Down

0 comments on commit 578494e

Please sign in to comment.