From 9d87907df20494eb485abbf255dfaf5c87c7624b Mon Sep 17 00:00:00 2001 From: Vicken Simonian Date: Thu, 16 Jul 2020 06:50:22 -0700 Subject: [PATCH] Add imagePullSecrets to the create user job (#9802) So that it can pull the specified image from a private registry. GitOrigin-RevId: 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 f21d4b4d55..b8133bb76d 100644 --- a/chart/templates/create-user-job.yaml +++ b/chart/templates/create-user-job.yaml @@ -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" . }}