From 91527623e416022f3e9cc3012f0be0c98a32f737 Mon Sep 17 00:00:00 2001 From: Razvan Valceanu Date: Mon, 1 Apr 2024 09:50:22 +0300 Subject: [PATCH 1/3] add imagePullSecrets: [] to default values.yaml Signed-off-by: Razvan Valceanu --- deploy/example-webhook/values.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/deploy/example-webhook/values.yaml b/deploy/example-webhook/values.yaml index 31eb15140..ae79ef00c 100644 --- a/deploy/example-webhook/values.yaml +++ b/deploy/example-webhook/values.yaml @@ -17,6 +17,7 @@ image: tag: latest pullPolicy: IfNotPresent +imagePullSecrets: [] nameOverride: "" fullnameOverride: "" From f935fce54a4efe07d61d446a5c645af30d66aa81 Mon Sep 17 00:00:00 2001 From: Razvan Valceanu Date: Mon, 1 Apr 2024 09:52:06 +0300 Subject: [PATCH 2/3] 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 057cc42bc..2e847bdb3 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 }}" From e89e27d41b14410e49ef38526cdaa33852b60d8a Mon Sep 17 00:00:00 2001 From: mpsOxygen Date: Thu, 13 Aug 2026 12:07:31 +0300 Subject: [PATCH 3/3] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Signed-off-by: mpsOxygen --- deploy/example-webhook/templates/deployment.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/deploy/example-webhook/templates/deployment.yaml b/deploy/example-webhook/templates/deployment.yaml index 2e847bdb3..5a771a350 100644 --- a/deploy/example-webhook/templates/deployment.yaml +++ b/deploy/example-webhook/templates/deployment.yaml @@ -21,8 +21,9 @@ spec: release: {{ .Release.Name }} spec: serviceAccountName: {{ include "example-webhook.fullname" . }} - {{- if .Values.imagePullSecrets }} - imagePullSecrets: {{ toYaml .Values.imagePullSecrets | nindent 8 }} + {{- with .Values.imagePullSecrets }} + imagePullSecrets: +{{ toYaml . | indent 8 }} {{- end }} containers: - name: {{ .Chart.Name }}