From 682ad34292cecf41d6c42e62b8375162a55a5469 Mon Sep 17 00:00:00 2001 From: Taha Jahangir Date: Sun, 31 Oct 2021 19:20:13 +0330 Subject: [PATCH] Use replicaSet param in mongodb-uri --- rocketchat/templates/secret.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rocketchat/templates/secret.yaml b/rocketchat/templates/secret.yaml index cf496b8..d128685 100644 --- a/rocketchat/templates/secret.yaml +++ b/rocketchat/templates/secret.yaml @@ -23,6 +23,6 @@ data: {{- $rsName := .Values.mongodb.replicaSetName }} {{- $port := .Values.mongodb.service.port }} {{- $dbname := required "Please specify a MongoDB database" .Values.mongodb.auth.database }} - mongo-uri: {{ printf "mongodb://%s:%s@%s:%.0f/%s" $username $password $fullname $port $dbname | b64enc | quote }} + mongo-uri: {{ printf "mongodb://%s:%s@%s:%.0f/%s?replicaSet=%s" $username $password $fullname $port $dbname $rsName | b64enc | quote }} mongo-oplog-uri: {{ printf "mongodb://root:%s@%s:%.0f/local?replicaSet=%s&authSource=admin" $rootPassword $fullname $port $rsName | b64enc | quote }} {{- end }}