From 6b934a8a1e51d0dd7f5e144d01bcc4e4338e9946 Mon Sep 17 00:00:00 2001 From: Harish S <119594385+Harish-egov@users.noreply.github.com> Date: Tue, 2 Jan 2024 16:26:10 +0530 Subject: [PATCH] updated common values.yaml (#2259) Co-authored-by: Harish-egov --- deploy-as-code/helm/charts/common/values.yaml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/deploy-as-code/helm/charts/common/values.yaml b/deploy-as-code/helm/charts/common/values.yaml index a550d2ae8f..b08c605f46 100644 --- a/deploy-as-code/helm/charts/common/values.yaml +++ b/deploy-as-code/helm/charts/common/values.yaml @@ -38,15 +38,22 @@ initContainers: tag: latest env: | - name: "DB_URL" - valueFrom: - configMapKeyRef: + {{- if eq .Values.namespace "health" }} + valueFrom: + configMapKeyRef: + name: egov-config + key: health-db-url + {{- else }} + valueFrom: + configMapKeyRef: name: egov-config key: db-url + {{- end }} - name: "SCHEMA_TABLE" - value: {{ .Values.initContainers.dbMigration.schemaTable | quote }} + value: {{ .Values.initContainers.dbMigration.schemaTable | quote }} - name: "FLYWAY_USER" - valueFrom: - secretKeyRef: + valueFrom: + secretKeyRef: name: db key: flyway-username - name: "FLYWAY_PASSWORD"