From: Timo Tietavainen Date: Tue, 30 Nov 2021 12:41:10 +0000 (+0200) Subject: Add DBAAS_NODE_COUNT configuration parameter X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=d51de737eaefc86531ec35c6bbbe927e0b3f06b0;p=ric-plt%2Fric-dep.git Add DBAAS_NODE_COUNT configuration parameter Parameter 'DBAAS_NODE_COUNT' defines how many DBAAS nodes belongs to one DBAAS group. For the time being node count in HA deployment is 3 and in standalone deployment 1. Issue-Id: RIC-113 Signed-off-by: Timo Tietavainen Change-Id: Ib99d74dba4d485dbe72bc937083edf3b684fe229 --- diff --git a/helm/dbaas/templates/appconfig.yaml b/helm/dbaas/templates/appconfig.yaml index a26e352..52508d4 100644 --- a/helm/dbaas/templates/appconfig.yaml +++ b/helm/dbaas/templates/appconfig.yaml @@ -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 }}