From f935fce54a4efe07d61d446a5c645af30d66aa81 Mon Sep 17 00:00:00 2001 From: Razvan Valceanu Date: Mon, 1 Apr 2024 09:52:06 +0300 Subject: [PATCH] add imagePullSecrets to deployment.yaml Signed-off-by: Razvan Valceanu --- deploy/example-webhook/templates/deployment.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/deploy/example-webhook/templates/deployment.yaml b/deploy/example-webhook/templates/deployment.yaml index 057cc42..2e847bd 100644 --- a/deploy/example-webhook/templates/deployment.yaml +++ b/deploy/example-webhook/templates/deployment.yaml @@ -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 }}"