Skip to content

Commit

Permalink
Add imagePullSecrets to the create user job (#9802)
Browse files Browse the repository at this point in the history
So that it can pull the specified image from a private registry.

GitOrigin-RevId: 473f506336b359f6d993b3cd5f8260585afbcb62
  • Loading branch information
vsimon authored and Cloud Composer Team committed Sep 12, 2024
1 parent 503ef30 commit 9d87907
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 9d87907

Please sign in to comment.