Skip to content

Commit

Permalink
add image pull secret option to helm chart
Browse files Browse the repository at this point in the history
  • Loading branch information
m-terra committed May 10, 2024
1 parent dcf0c56 commit 9a7923e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions helm/haproxy-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ spec:
app: {{ .Values.name }}
spec:
serviceAccountName: {{ .Values.name }}
{{- if .Values.image.pullSecrets }}
imagePullSecrets:
{{- range .Values.image.pullSecrets }}
- name: {{ . }}
{{- end }}
{{- end }}
containers:
- name: {{ .Values.name }}
image: {{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}
Expand Down

0 comments on commit 9a7923e

Please sign in to comment.