From 5f55ce6f906945fd43051b3724b12cac6dd601df Mon Sep 17 00:00:00 2001 From: Preet Shah Date: Wed, 6 Dec 2023 21:49:29 +0530 Subject: [PATCH] update deployment.yaml template as per updated secrets.yaml template --- charts/openmetadata/templates/deployment.yaml | 52 ++++++++++++++----- 1 file changed, 40 insertions(+), 12 deletions(-) diff --git a/charts/openmetadata/templates/deployment.yaml b/charts/openmetadata/templates/deployment.yaml index 9689961e..bb4deeba 100644 --- a/charts/openmetadata/templates/deployment.yaml +++ b/charts/openmetadata/templates/deployment.yaml @@ -37,24 +37,38 @@ spec: {{- toYaml . | nindent 10 }} {{- end }} envFrom: + - secretRef: + name: {{ include "OpenMetadata.fullname" . }}-config-secret + - secretRef: + name: {{ include "OpenMetadata.fullname" . }}-omd-secret + {{- if .Values.openmetadata.config.database.enabled }} - secretRef: name: {{ include "OpenMetadata.fullname" . }}-db-secret + {{- end }} + {{- if .Values.openmetadata.config.elasticsearch.enabled }} - secretRef: name: {{ include "OpenMetadata.fullname" . }}-search-secret + {{- end }} + {{- if .Values.openmetadata.config.authorizer.enabled }} - secretRef: name: {{ include "OpenMetadata.fullname" . }}-authorizer-secret - - secretRef: - name: {{ include "OpenMetadata.fullname" . }}-omd-secret + {{- end }} + {{- if .Values.openmetadata.config.secretsManager.enabled }} - secretRef: name: {{ include "OpenMetadata.fullname" . }}-secretsmanager-secret + {{- end }} + {{- if .Values.openmetadata.config.web.enabled }} - secretRef: name: {{ include "OpenMetadata.fullname" . }}-web-secret + {{- end }} + {{- if .Values.openmetadata.config.authentication.enabled }} - secretRef: name: {{ include "OpenMetadata.fullname" . }}-authentication-secret + {{- end }} + {{- if .Values.openmetadata.config.eventMonitor.enabled }} - secretRef: name: {{ include "OpenMetadata.fullname" . }}-eventmonitor-secret - - secretRef: - name: {{ include "OpenMetadata.fullname" . }}-config-secret + {{- end }} {{- if .Values.openmetadata.config.pipelineServiceClientConfig.enabled }} - secretRef: name: {{ include "OpenMetadata.fullname" . }}-pipeline-secret @@ -116,25 +130,39 @@ spec: {{- with .Values.extraEnvs }} {{- toYaml . | nindent 10 }} {{- end }} - envFrom: + envFrom: + - secretRef: + name: {{ include "OpenMetadata.fullname" . }}-config-secret + - secretRef: + name: {{ include "OpenMetadata.fullname" . }}-omd-secret + {{- if .Values.openmetadata.config.database.enabled }} - secretRef: name: {{ include "OpenMetadata.fullname" . }}-db-secret + {{- end }} + {{- if .Values.openmetadata.config.elasticsearch.enabled }} - secretRef: name: {{ include "OpenMetadata.fullname" . }}-search-secret + {{- end }} + {{- if .Values.openmetadata.config.authorizer.enabled }} - secretRef: name: {{ include "OpenMetadata.fullname" . }}-authorizer-secret - - secretRef: - name: {{ include "OpenMetadata.fullname" . }}-omd-secret + {{- end }} + {{- if .Values.openmetadata.config.secretsManager.enabled }} - secretRef: name: {{ include "OpenMetadata.fullname" . }}-secretsmanager-secret + {{- end }} + {{- if .Values.openmetadata.config.web.enabled }} - secretRef: name: {{ include "OpenMetadata.fullname" . }}-web-secret + {{- end }} + {{- if .Values.openmetadata.config.authentication.enabled }} - secretRef: name: {{ include "OpenMetadata.fullname" . }}-authentication-secret + {{- end }} + {{- if .Values.openmetadata.config.eventMonitor.enabled }} - secretRef: name: {{ include "OpenMetadata.fullname" . }}-eventmonitor-secret - - secretRef: - name: {{ include "OpenMetadata.fullname" . }}-config-secret + {{- end }} {{- if .Values.openmetadata.config.pipelineServiceClientConfig.enabled }} - secretRef: name: {{ include "OpenMetadata.fullname" . }}-pipeline-secret @@ -153,9 +181,9 @@ spec: name: {{ include "OpenMetadata.fullname" $ }}-fernetkey-secret {{- end }} {{- end }} - {{- with .Values.envFrom }} - {{- toYaml . | nindent 10 }} - {{- end }} + {{- with .Values.envFrom }} + {{- toYaml . | nindent 10 }} + {{- end }} resources: {{- toYaml .Values.resources | nindent 12 }} {{- if .Values.sidecars }}