Skip to content

Commit

Permalink
Add imagePullSecrets to the create user job (apache#9802)
Browse files Browse the repository at this point in the history
So that it can pull the specified image from a private registry.
  • Loading branch information
vsimon authored Jul 16, 2020
1 parent f4067b6 commit 473f506
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions chart/templates/create-user-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ spec:
{{ toYaml .Values.affinity | indent 8 }}
tolerations:
{{ toYaml .Values.tolerations | indent 8 }}
{{- if or .Values.registry.secretName .Values.registry.connection }}
imagePullSecrets:
- name: {{ template "registry_secret" . }}
{{- end }}
containers:
- name: create-user
image: {{ template "airflow_image" . }}
Expand Down

0 comments on commit 473f506

Please sign in to comment.