From ee3952650bc5c7adbcf9398faa8c6df574347227 Mon Sep 17 00:00:00 2001 From: Youngteac Hong Date: Thu, 19 Dec 2024 17:49:46 +0900 Subject: [PATCH] Extract db name as an argument to value.yaml --- build/charts/yorkie-cluster/templates/yorkie/deployment.yaml | 2 ++ build/charts/yorkie-cluster/values.yaml | 1 + 2 files changed, 3 insertions(+) diff --git a/build/charts/yorkie-cluster/templates/yorkie/deployment.yaml b/build/charts/yorkie-cluster/templates/yorkie/deployment.yaml index 9e2029d83..2557c6434 100644 --- a/build/charts/yorkie-cluster/templates/yorkie/deployment.yaml +++ b/build/charts/yorkie-cluster/templates/yorkie/deployment.yaml @@ -72,6 +72,8 @@ spec: "server", "--mongo-connection-uri", "{{ .Values.yorkie.args.dbConnectionUri }}", + "--mongo-yorkie-database" + "{{ .Values.yorkie.args.dbName }}", "--enable-pprof", "--rpc-port", "{{ .Values.yorkie.ports.rpcPort }}", diff --git a/build/charts/yorkie-cluster/values.yaml b/build/charts/yorkie-cluster/values.yaml index f845636f0..9e55a2d0b 100644 --- a/build/charts/yorkie-cluster/values.yaml +++ b/build/charts/yorkie-cluster/values.yaml @@ -14,6 +14,7 @@ yorkie: args: dbConnectionUri: mongodb://mongodb.mongodb.svc.cluster.local:27017/yorkie-meta + dbName: yorkie-meta ports: rpcPort: 8080