From d51de737eaefc86531ec35c6bbbe927e0b3f06b0 Mon Sep 17 00:00:00 2001 From: Timo Tietavainen Date: Tue, 30 Nov 2021 14:41:10 +0200 Subject: [PATCH] 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 --- helm/dbaas/templates/appconfig.yaml | 3 +++ 1 file changed, 3 insertions(+) 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 }} -- 2.16.6