diff --git a/helm/haproxy-operator/templates/deployment.yaml b/helm/haproxy-operator/templates/deployment.yaml index 86dda05..7664e99 100644 --- a/helm/haproxy-operator/templates/deployment.yaml +++ b/helm/haproxy-operator/templates/deployment.yaml @@ -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 }}