From 71e02427054eaf85be32a3a6b4338728d40dbcd2 Mon Sep 17 00:00:00 2001 From: wojiushixiaobai <296015668@qq.com> Date: Wed, 8 Sep 2021 20:55:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=AD=A3=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/celery/deployment-celery.yaml | 4 ++++ templates/koko/deployment-koko.yaml | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/templates/celery/deployment-celery.yaml b/templates/celery/deployment-celery.yaml index 70ab462..0a77469 100644 --- a/templates/celery/deployment-celery.yaml +++ b/templates/celery/deployment-celery.yaml @@ -23,6 +23,10 @@ spec: app.kubernetes.io/instance: {{ $.Release.Name }} {{- toYaml .labels | nindent 8 }} spec: + {{- if $.Values.global.imagePullSecrets }} + imagePullSecrets: + {{ toYaml $.Values.global.imagePullSecrets }} + {{- end }} serviceAccountName: {{ template "jumpserver.serviceAccountName" $ }} securityContext: {{- toYaml .podSecurityContext | nindent 8 }} diff --git a/templates/koko/deployment-koko.yaml b/templates/koko/deployment-koko.yaml index 9e78f62..e33aae7 100644 --- a/templates/koko/deployment-koko.yaml +++ b/templates/koko/deployment-koko.yaml @@ -11,10 +11,6 @@ metadata: {{- include "jumpserver.labels" $ | nindent 4 }} {{- toYaml .labels | nindent 4 }} spec: - {{- if $.Values.global.imagePullSecrets }} - imagePullSecrets: - {{ toYaml $.Values.global.imagePullSecrets }} - {{- end }} replicas: {{ .replicaCount }} selector: matchLabels: @@ -28,6 +24,10 @@ spec: app.kubernetes.io/instance: {{ $.Release.Name }} {{- toYaml .labels | nindent 8 }} spec: + {{- if $.Values.global.imagePullSecrets }} + imagePullSecrets: + {{ toYaml $.Values.global.imagePullSecrets }} + {{- end }} serviceAccountName: {{ template "jumpserver.serviceAccountName" $ }} securityContext: {{- toYaml .podSecurityContext | nindent 8 }}