diff --git a/charts/openmetadata/templates/cron-deploy-pipelines.yaml b/charts/openmetadata/templates/cron-deploy-pipelines.yaml index 2ba2bb0..b35513c 100644 --- a/charts/openmetadata/templates/cron-deploy-pipelines.yaml +++ b/charts/openmetadata/templates/cron-deploy-pipelines.yaml @@ -35,6 +35,10 @@ spec: {{- end }} securityContext: {{- toYaml .Values.podSecurityContext | nindent 12 }} + {{- with .Values.preMigrateInitContainers }} + initContainers: + {{- toYaml . | nindent 12 }} + {{- end }} volumes: {{- include "tplvalues.render" (dict "value" .Values.extraVolumes "context" $) | nindent 12 }} containers: @@ -110,8 +114,8 @@ spec: {{- end }} resources: {{- toYaml .Values.resources | nindent 14 }} - {{- if .Values.sidecars }} - {{- include "tplvalues.render" (dict "value" .Values.sidecars "context" $) | nindent 10 }} + {{- if .Values.extraContainers }} + {{- include "tplvalues.render" (dict "value" .Values.extraContainers "context" $) | nindent 10 }} {{- end }} {{- with .Values.nodeSelector }} nodeSelector: diff --git a/charts/openmetadata/templates/cron-reindex.yaml b/charts/openmetadata/templates/cron-reindex.yaml index df9798a..552a6cd 100644 --- a/charts/openmetadata/templates/cron-reindex.yaml +++ b/charts/openmetadata/templates/cron-reindex.yaml @@ -35,6 +35,10 @@ spec: {{- end }} securityContext: {{- toYaml .Values.securityContext | nindent 12 }} + {{- with .Values.preMigrateInitContainers }} + initContainers: + {{- toYaml . | nindent 12 }} + {{- end }} volumes: {{- include "tplvalues.render" (dict "value" .Values.extraVolumes "context" $) | nindent 12 }} containers: @@ -110,8 +114,8 @@ spec: {{- end }} resources: {{- toYaml .Values.resources | nindent 14 }} - {{- if .Values.sidecars }} - {{- include "tplvalues.render" (dict "value" .Values.sidecars "context" $) | nindent 10 }} + {{- if .Values.extraContainers }} + {{- include "tplvalues.render" (dict "value" .Values.extraContainers "context" $) | nindent 10 }} {{- end }} {{- with .Values.nodeSelector }} nodeSelector: diff --git a/charts/openmetadata/templates/deployment.yaml b/charts/openmetadata/templates/deployment.yaml index 3cfa869..fb1dc12 100644 --- a/charts/openmetadata/templates/deployment.yaml +++ b/charts/openmetadata/templates/deployment.yaml @@ -196,8 +196,8 @@ spec: {{- end }} resources: {{- toYaml .Values.resources | nindent 12 }} - {{- if .Values.sidecars }} - {{- include "tplvalues.render" (dict "value" .Values.sidecars "context" $) | nindent 8 }} + {{- if .Values.extraContainers }} + {{- include "tplvalues.render" (dict "value" .Values.extraContainers "context" $) | nindent 8 }} {{- end }} {{- with .Values.nodeSelector }} nodeSelector: diff --git a/charts/openmetadata/values.schema.json b/charts/openmetadata/values.schema.json index 6b824f1..6db1e58 100644 --- a/charts/openmetadata/values.schema.json +++ b/charts/openmetadata/values.schema.json @@ -1320,7 +1320,7 @@ } } }, - "sidecars": { + "extraContainers": { "type": "array" }, "startupProbe": { diff --git a/charts/openmetadata/values.yaml b/charts/openmetadata/values.yaml index 0d6d354..2932bd2 100644 --- a/charts/openmetadata/values.yaml +++ b/charts/openmetadata/values.yaml @@ -384,7 +384,9 @@ image: tag: "" pullPolicy: "Always" -sidecars: [] +extraContainers: [] + +# sidecars: [] # - name: "busybox" # image: "busybox:1.34.1" # imagePullPolicy: "Always"