Skip to content

Commit

Permalink
Add imagePullSecrets for jwt init job (#1123)
Browse files Browse the repository at this point in the history
Add imagePullSecrets in jwt init job

(cherry picked from commit 5792b4f)
  • Loading branch information
ciiiii authored and ericsyh committed Nov 7, 2023
1 parent e9a094d commit 6dbd99d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions charts/sn-platform/templates/toolset/jwt-secret-init-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6dbd99d

Please sign in to comment.