Merge "[RIC-816] install script to support "optional components""
authorThoralf Czichy <thoralf.czichy@nokia.com>
Thu, 16 Dec 2021 14:29:02 +0000 (14:29 +0000)
committerGerrit Code Review <gerrit@o-ran-sc.org>
Thu, 16 Dec 2021 14:29:02 +0000 (14:29 +0000)
helm/dbaas/templates/appconfig.yaml
helm/dbaas/templates/statefulset.yaml

index a26e352..52508d4 100644 (file)
@@ -33,6 +33,9 @@ data:
 {{- if $.Values.dbaas.enableHighAvailability }}
   DBAAS_SERVICE_SENTINEL_PORT: {{ include "common.serviceport.dbaas.sentinel" . | quote }}
   DBAAS_MASTER_NAME: {{ $.Values.dbaas.redis.masterGroupName }}
+  DBAAS_NODE_COUNT: {{ $.Values.dbaas.haReplicas | quote }}
+{{- else }}
+  DBAAS_NODE_COUNT: {{ $.Values.dbaas.saReplicas | quote }}
 {{- end }}
   DBAAS_SERVICE_HOST: {{ include "common.servicename.dbaas.tcp" $ }}.{{ $platformNameSpace }}
   DBAAS_SERVICE_PORT: {{ include "common.serviceport.dbaas.redis" $ | quote }}
index 25faf7d..9e682e3 100644 (file)
@@ -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