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 <[email protected]>
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" . }}

Reply via email to