You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2020/11/15 09:37:58 UTC
[airflow] 15/19: Add imagePullSecrets to the create user job (#9802)
This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch v1-10-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
commit 771c4ecc8727d6a779cd203b4338dc3d858e0388
Author: Vicken Simonian <vs...@gmail.com>
AuthorDate: Thu Jul 16 06:50:22 2020 -0700
Add imagePullSecrets to the create user job (#9802)
So that it can pull the specified image from a private registry.
(cherry picked from commit 473f506336b359f6d993b3cd5f8260585afbcb62)
---
chart/templates/create-user-job.yaml | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/chart/templates/create-user-job.yaml b/chart/templates/create-user-job.yaml
index 656059b..27a0363 100644
--- a/chart/templates/create-user-job.yaml
+++ b/chart/templates/create-user-job.yaml
@@ -53,6 +53,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" . }}