add imagePullSecrets to deployment.yaml

Signed-off-by: Razvan Valceanu <razvan.valceanu@metaminds.com>
This commit is contained in:
Razvan Valceanu 2024-04-01 09:52:06 +03:00
parent 91527623e4
commit f935fce54a

View file

@ -21,6 +21,9 @@ spec:
release: {{ .Release.Name }}
spec:
serviceAccountName: {{ include "example-webhook.fullname" . }}
{{- if .Values.imagePullSecrets }}
imagePullSecrets: {{ toYaml .Values.imagePullSecrets | nindent 8 }}
{{- end }}
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"