Add DBAAS_NODE_COUNT configuration parameter
[ric-plt/ric-dep.git] / helm / dbaas / templates / appconfig.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 }}