diff --git a/charts/datahub/templates/datahub-upgrade/datahub-nocode-migration-job.yml b/charts/datahub/templates/datahub-upgrade/datahub-nocode-migration-job.yml index 052ac8df5..7649584e8 100644 --- a/charts/datahub/templates/datahub-upgrade/datahub-nocode-migration-job.yml +++ b/charts/datahub/templates/datahub-upgrade/datahub-nocode-migration-job.yml @@ -49,9 +49,9 @@ spec: restartPolicy: Never securityContext: {{- toYaml .Values.datahubUpgrade.podSecurityContext | nindent 8 }} - initContainers: {{- with .Values.datahubUpgrade.extraInitContainers }} - {{- toYaml . | nindent 12 }} + initContainers: + {{- toYaml . | nindent 8 }} {{- end }} containers: - name: datahub-upgrade-job diff --git a/charts/datahub/templates/datahub-upgrade/datahub-system-update-job.yml b/charts/datahub/templates/datahub-upgrade/datahub-system-update-job.yml index 72b1dd539..e03e8b38f 100644 --- a/charts/datahub/templates/datahub-upgrade/datahub-system-update-job.yml +++ b/charts/datahub/templates/datahub-upgrade/datahub-system-update-job.yml @@ -49,9 +49,9 @@ spec: restartPolicy: Never securityContext: {{- toYaml .Values.datahubSystemUpdate.podSecurityContext | nindent 8 }} - initContainers: {{- with .Values.datahubSystemUpdate.extraInitContainers }} - {{- toYaml . | nindent 12 }} + initContainers: + {{- toYaml . | nindent 8 }} {{- end }} containers: - name: datahub-system-update-job diff --git a/charts/datahub/templates/elasticsearch-setup-job.yml b/charts/datahub/templates/elasticsearch-setup-job.yml index e825e35d5..8af9d1175 100644 --- a/charts/datahub/templates/elasticsearch-setup-job.yml +++ b/charts/datahub/templates/elasticsearch-setup-job.yml @@ -43,6 +43,10 @@ spec: restartPolicy: Never securityContext: {{- toYaml .Values.elasticsearchSetupJob.podSecurityContext | nindent 8 }} + {{- with .Values.elasticsearchSetupJob.extraInitContainers }} + initContainers: + {{- toYaml . | nindent 8 }} + {{- end }} containers: - name: elasticsearch-setup-job image: "{{ .Values.elasticsearchSetupJob.image.repository }}:{{ required "Global or specific tag is required" ( .Values.elasticsearchSetupJob.image.tag | default .Values.global.datahub.version) }}" diff --git a/charts/datahub/templates/kafka-setup-job.yml b/charts/datahub/templates/kafka-setup-job.yml index e1aad50cc..a6551d7f1 100644 --- a/charts/datahub/templates/kafka-setup-job.yml +++ b/charts/datahub/templates/kafka-setup-job.yml @@ -49,6 +49,10 @@ spec: {{- with .Values.kafkaSetupJob.extraVolumes }} {{- toYaml . | nindent 8 }} {{- end }} + {{- with .Values.kafkaSetupJob.extraInitContainers }} + initContainers: + {{- toYaml . | nindent 8 }} + {{- end }} containers: - name: kafka-setup-job image: "{{ .Values.kafkaSetupJob.image.repository }}:{{ required "Global or specific tag is required" ( .Values.kafkaSetupJob.image.tag | default .Values.global.datahub.version) }}" diff --git a/charts/datahub/templates/mysql-setup-job.yml b/charts/datahub/templates/mysql-setup-job.yml index ef72e153a..e847726ae 100644 --- a/charts/datahub/templates/mysql-setup-job.yml +++ b/charts/datahub/templates/mysql-setup-job.yml @@ -43,6 +43,10 @@ spec: restartPolicy: Never securityContext: {{- toYaml .Values.mysqlSetupJob.podSecurityContext | nindent 8 }} + {{- with .Values.mysqlSetupJob.extraInitContainers }} + initContainers: + {{- toYaml . | nindent 8 }} + {{- end }} containers: - name: mysql-setup-job image: "{{ .Values.mysqlSetupJob.image.repository }}:{{ required "Global or specific tag is required" ( .Values.mysqlSetupJob.image.tag | default .Values.global.datahub.version) }}" diff --git a/charts/datahub/templates/postgresql-setup-job.yml b/charts/datahub/templates/postgresql-setup-job.yml index 8ab281dcb..f5c021468 100644 --- a/charts/datahub/templates/postgresql-setup-job.yml +++ b/charts/datahub/templates/postgresql-setup-job.yml @@ -43,6 +43,10 @@ spec: restartPolicy: Never securityContext: {{- toYaml .Values.postgresqlSetupJob.podSecurityContext | nindent 8 }} + {{- with .Values.postgresqlSetupJob.extraInitContainers }} + initContainers: + {{- toYaml . | nindent 8 }} + {{- end }} containers: - name: postgresql-setup-job image: "{{ .Values.postgresqlSetupJob.image.repository }}:{{ required "Global or specific tag is required" (.Values.postgresqlSetupJob.image.tag | default .Values.global.datahub.version) }}" diff --git a/charts/datahub/values.yaml b/charts/datahub/values.yaml index eaa4b7e2a..6c485aa77 100644 --- a/charts/datahub/values.yaml +++ b/charts/datahub/values.yaml @@ -96,6 +96,7 @@ elasticsearchSetupJob: requests: cpu: 300m memory: 256Mi + extraInitContainers: [] podSecurityContext: fsGroup: 1000 securityContext: @@ -125,6 +126,7 @@ kafkaSetupJob: requests: cpu: 300m memory: 768Mi + extraInitContainers: [] podSecurityContext: fsGroup: 1000 securityContext: @@ -154,6 +156,7 @@ mysqlSetupJob: requests: cpu: 300m memory: 256Mi + extraInitContainers: [] podSecurityContext: fsGroup: 1000 securityContext: @@ -188,6 +191,7 @@ postgresqlSetupJob: requests: cpu: 300m memory: 256Mi + extraInitContainers: [] podSecurityContext: fsGroup: 1000 securityContext: @@ -271,6 +275,7 @@ datahubUpgrade: # extraEnvs: # - name: "DATAHUB_DB_NAME" # value: "dh" + extraInitContainers: [] ## Runs system update processes ## Includes: Elasticsearch Indices Creation/Reindex (See global.elasticsearch.index for additional configuration) @@ -301,6 +306,7 @@ datahubSystemUpdate: # - name: my-image-name # image: my-image # imagePullPolicy: Always + extraInitContainers: [] global: strict_mode: true