From e0cff3ae3b1d4c2cc698ee0a37c5e9ef682658cd Mon Sep 17 00:00:00 2001 From: Yisheng Cai Date: Tue, 7 Nov 2023 09:04:12 +0800 Subject: [PATCH] Add imagePullSecrets for jwt init job (#1123) Add imagePullSecrets in jwt init job (cherry picked from commit 5792b4fb542efcbf748299aa4cb47881e2ae3451) --- .../templates/toolset/jwt-secret-init-job.yaml | 4 ++++ charts/sn-platform/templates/toolset/jwt-secret-init-job.yaml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/charts/sn-platform-slim/templates/toolset/jwt-secret-init-job.yaml b/charts/sn-platform-slim/templates/toolset/jwt-secret-init-job.yaml index 74ed5189..4a66b68e 100644 --- a/charts/sn-platform-slim/templates/toolset/jwt-secret-init-job.yaml +++ b/charts/sn-platform-slim/templates/toolset/jwt-secret-init-job.yaml @@ -45,6 +45,10 @@ spec: {{ toYaml .Values.toolset.annotations | indent 8 }} {{- end }} spec: + {{- if .Values.global.imagePullSecrets }} + imagePullSecrets: +{{ toYaml .Values.global.imagePullSecrets | indent 8 }} + {{- end }} serviceAccountName: {{ template "pulsar.fullname" . }}-jwt-secret-init-acct volumes: - name: {{ template "pulsar.fullname" . }}-jwt-secret-init-config diff --git a/charts/sn-platform/templates/toolset/jwt-secret-init-job.yaml b/charts/sn-platform/templates/toolset/jwt-secret-init-job.yaml index 48a8b4cc..a9930756 100644 --- a/charts/sn-platform/templates/toolset/jwt-secret-init-job.yaml +++ b/charts/sn-platform/templates/toolset/jwt-secret-init-job.yaml @@ -45,6 +45,10 @@ spec: {{ toYaml .Values.toolset.annotations | indent 8 }} {{- end }} spec: + {{- if .Values.global.imagePullSecrets }} + imagePullSecrets: +{{ toYaml .Values.global.imagePullSecrets | indent 8 }} + {{- end }} serviceAccountName: {{ template "pulsar.fullname" . }}-jwt-secret-init-acct volumes: - name: {{ template "pulsar.fullname" . }}-jwt-secret-init-config