From: Timo Tietavainen Date: Wed, 1 Dec 2021 18:00:31 +0000 (+0200) Subject: Define configmap data as dbaas and sentinel container environment X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=988b89f570d75344d7a6ca897a1c13cc1d11e066;p=ric-plt%2Fric-dep.git Define configmap data as dbaas and sentinel container environment Added envFrom to define dbaas configmap data as dbaas and sentinel container environment variables. Environment variables will be used by sdlcli -command line tool. Issue-Id: RIC-113 Signed-off-by: Timo Tietavainen Change-Id: Ie8c342733cbd709539bcb23dc4c917982c6808da --- diff --git a/helm/dbaas/templates/statefulset.yaml b/helm/dbaas/templates/statefulset.yaml index 25faf7d..9e682e3 100644 --- a/helm/dbaas/templates/statefulset.yaml +++ b/helm/dbaas/templates/statefulset.yaml @@ -121,6 +121,9 @@ spec: ports: - name: redis containerPort: {{ include "common.serviceport.dbaas.redis" . }} + envFrom: + - configMapRef: + name: {{ include "common.configmapname.dbaas" . }}-appconfig volumeMounts: - mountPath: /data {{- if $.Values.dbaas.enableHighAvailability }} @@ -152,6 +155,9 @@ spec: ports: - name: sentinel containerPort: {{ include "common.serviceport.dbaas.sentinel" . }} + envFrom: + - configMapRef: + name: {{ include "common.configmapname.dbaas" . }}-appconfig volumeMounts: - mountPath: /data name: data