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 }}