From c49980ac2a035026a00f4233887238e0ccb51b31 Mon Sep 17 00:00:00 2001 From: Corey Zuares <251062+czuares@users.noreply.github.com> Date: Thu, 13 Oct 2022 06:24:16 -0400 Subject: [PATCH] Add missing extraInitContainers (#17781) --- charts/airbyte-bootloader/templates/pod.yaml | 4 ++++ charts/airbyte-server/templates/deployment.yaml | 6 +++++- charts/airbyte-webapp/templates/deployment.yaml | 4 ++++ charts/airbyte-worker/templates/deployment.yaml | 6 +++++- 4 files changed, 18 insertions(+), 2 deletions(-) diff --git a/charts/airbyte-bootloader/templates/pod.yaml b/charts/airbyte-bootloader/templates/pod.yaml index 70838a777421..b5634b7bb0e2 100644 --- a/charts/airbyte-bootloader/templates/pod.yaml +++ b/charts/airbyte-bootloader/templates/pod.yaml @@ -29,6 +29,10 @@ spec: {{- if .Values.affinity }} affinity: {{- include "common.tplvalues.render" (dict "value" .Values.affinity "context" $) | nindent 8 }} {{- end }} + {{- if .Values.extraInitContainers }} + initContainers: + {{- toYaml .Values.extraInitContainers | nindent 4 }} + {{- end }} containers: - name: airbyte-bootloader-container image: {{ printf "%s:%s" .Values.image.repository (include "bootloader.imageTag" .) }} diff --git a/charts/airbyte-server/templates/deployment.yaml b/charts/airbyte-server/templates/deployment.yaml index 13bb93ed26a6..7f32e0aa1306 100644 --- a/charts/airbyte-server/templates/deployment.yaml +++ b/charts/airbyte-server/templates/deployment.yaml @@ -37,6 +37,10 @@ spec: {{- if .Values.affinity }} affinity: {{- include "common.tplvalues.render" (dict "value" .Values.affinity "context" $) | nindent 8 }} {{- end }} + {{- if .Values.extraInitContainers }} + initContainers: + {{- toYaml .Values.extraInitContainers | nindent 6 }} + {{- end }} containers: - name: airbyte-server-container image: {{ printf "%s:%s" .Values.image.repository (include "server.imageTag" .) }} @@ -263,4 +267,4 @@ spec: {{- end }} {{- if .Values.extraVolumes }} {{ toYaml .Values.extraVolumes | nindent 6 }} - {{- end }} \ No newline at end of file + {{- end }} diff --git a/charts/airbyte-webapp/templates/deployment.yaml b/charts/airbyte-webapp/templates/deployment.yaml index 274202fb417f..f1ad5c65900f 100644 --- a/charts/airbyte-webapp/templates/deployment.yaml +++ b/charts/airbyte-webapp/templates/deployment.yaml @@ -34,6 +34,10 @@ spec: {{- printf "- name: %s" .name | nindent 8 }} {{- end }} {{- end }} + {{- if .Values.extraInitContainers }} + initContainers: + {{- toYaml .Values.extraInitContainers | nindent 6 }} + {{- end }} containers: - name: airbyte-webapp-container image: {{ printf "%s:%s" .Values.image.repository (include "webapp.imageTag" .) }} diff --git a/charts/airbyte-worker/templates/deployment.yaml b/charts/airbyte-worker/templates/deployment.yaml index 9e40d680bdcb..981a466a943f 100644 --- a/charts/airbyte-worker/templates/deployment.yaml +++ b/charts/airbyte-worker/templates/deployment.yaml @@ -36,6 +36,10 @@ spec: {{- if .Values.affinity }} affinity: {{- include "common.tplvalues.render" (dict "value" .Values.affinity "context" $) | nindent 8 }} {{- end }} + {{- if .Values.extraInitContainers }} + initContainers: + {{- toYaml .Values.extraInitContainers | nindent 6 }} + {{- end }} containers: - name: airbyte-worker-container image: {{ printf "%s:%s" .Values.image.repository (include "worker.imageTag" .) }} @@ -420,4 +424,4 @@ spec: {{- end }} {{- if .Values.global.extraVolumes }} {{- toYaml .Values.global.extraVolumes | nindent 6 }} - {{- end }} \ No newline at end of file + {{- end }}