From 5abf6421130e3db99d45651f0c71f32a6c3e4712 Mon Sep 17 00:00:00 2001 From: Stefan McShane Date: Wed, 27 Nov 2024 17:09:06 -0500 Subject: [PATCH] feat: support global image pull secrets --- applications/job/templates/cronjob.yaml | 3 +++ applications/web/Chart.yaml | 2 +- applications/web/templates/deployment.yaml | 3 +++ applications/worker/templates/deployment.yaml | 3 +++ 4 files changed, 10 insertions(+), 1 deletion(-) diff --git a/applications/job/templates/cronjob.yaml b/applications/job/templates/cronjob.yaml index 3f0bd261a..b7fc37b99 100644 --- a/applications/job/templates/cronjob.yaml +++ b/applications/job/templates/cronjob.yaml @@ -75,6 +75,9 @@ spec: {{- if and .Values.image .Values.image.imagePullSecret }} imagePullSecrets: - name: {{ .Values.image.imagePullSecret }} + {{- else if and .Values.global .Values.global.image .Values.global.image.imagePullSecret }} + imagePullSecrets: + - name: {{ .Values.global.image.imagePullSecret }} {{- end }} containers: - name: {{ .Chart.Name }} diff --git a/applications/web/Chart.yaml b/applications/web/Chart.yaml index 0b02c4896..d1a734b3d 100644 --- a/applications/web/Chart.yaml +++ b/applications/web/Chart.yaml @@ -10,4 +10,4 @@ keywords: - web name: web type: application -version: 0.186.0 +version: 0.203.1 diff --git a/applications/web/templates/deployment.yaml b/applications/web/templates/deployment.yaml index 1eda52f3d..95066e6c4 100644 --- a/applications/web/templates/deployment.yaml +++ b/applications/web/templates/deployment.yaml @@ -88,6 +88,9 @@ spec: {{- if and .Values.image .Values.image.imagePullSecret }} imagePullSecrets: - name: {{ .Values.image.imagePullSecret }} + {{- else if and .Values.global .Values.global.image .Values.global.image.imagePullSecret }} + imagePullSecrets: + - name: {{ .Values.global.image.imagePullSecret }} {{- end }} initContainers: # this is used for ensuring the kubelet is ready on new nodes, and can injected any downward API keys diff --git a/applications/worker/templates/deployment.yaml b/applications/worker/templates/deployment.yaml index f98cce070..2219ac447 100644 --- a/applications/worker/templates/deployment.yaml +++ b/applications/worker/templates/deployment.yaml @@ -65,6 +65,9 @@ spec: {{- if and .Values.image .Values.image.imagePullSecret }} imagePullSecrets: - name: {{ .Values.image.imagePullSecret }} + {{- else if and .Values.global .Values.global.image .Values.global.image.imagePullSecret }} + imagePullSecrets: + - name: {{ .Values.global.image.imagePullSecret }} {{- end }} initContainers: # this is used for ensuring the kubelet is ready on new nodes, and can injected any downward API keys