Skip to content

Commit

Permalink
Use DBConnectionURI directly (#833)
Browse files Browse the repository at this point in the history
This commit changes yorkie-cluster chart to allow direct input of the
DBConnectionURI.

Users can set options such as authmechanism in the MongoDB Connection
URI. However, the current chart separates port and URI, making it
impossible to configure settings. This commit enables users to
directly set DBConnectionURI, allowing them to specify options when
connecting to MongoDB.
  • Loading branch information
hackerwins authored Apr 3, 2024
1 parent 13315ac commit d5bc939
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ spec:
args: [
"server",
"--mongo-connection-uri",
"mongodb://{{ .Values.yorkie.args.dbUrl }}:{{ .Values.yorkie.args.dbPort }}/yorkie-meta",
"{{ .Values.yorkie.args.dbConnectionUri }}",
"--enable-pprof",
"--rpc-port",
"{{ .Values.yorkie.ports.rpcPort }}",
Expand Down
3 changes: 1 addition & 2 deletions build/charts/yorkie-cluster/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ yorkie:
tag: ""

args:
dbUrl: mongodb.mongodb.svc.cluster.local
dbPort: 27017
dbConnectionUri: mongodb://mongodb.mongodb.svc.cluster.local:27017/yorkie-meta

ports:
rpcPort: 8080
Expand Down

0 comments on commit d5bc939

Please sign in to comment.