Skip to content

Commit

Permalink
Render 3-shards mongodb manifests
Browse files Browse the repository at this point in the history
  • Loading branch information
rachedbenmustapha committed Apr 14, 2023
1 parent 4476b4d commit 7968b21
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 5 additions & 1 deletion solution-base/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ MONGODB_SINGLE_NODE_PATH=${ISO_ROOT}/deploy/mongodb-1-node.yaml
MONGODB_THREE_NODE_PATH=${ISO_ROOT}/deploy/mongodb-3-nodes.yaml
MONGODB_SHARDED_SINGLE_NODE_PATH=${ISO_ROOT}/deploy/mongodb-sharded-1-node.yaml
MONGODB_SHARDED_THREE_NODE_PATH=${ISO_ROOT}/deploy/mongodb-sharded-3-nodes.yaml
MONGODB_SHARDED_SINGLE_NODE_THREE_SHARDS_PATH=${ISO_ROOT}/deploy/mongodb-sharded-1-node-3-shards.yaml
MONGODB_SHARDED_THREE_NODE_THREE_SHARDS_PATH=${ISO_ROOT}/deploy/mongodb-sharded-3-nodes-3-shards.yaml

SOLUTION_ENV='SOLUTION_ENV'

Expand Down Expand Up @@ -199,7 +201,9 @@ function render_mongodb_sharded_yamls()
function mongodb_sharded_yamls()
{
render_mongodb_sharded_yamls "${MONGODB_SHARDED_SINGLE_NODE_PATH}" 1 1
render_mongodb_sharded_yamls "${MONGODB_SHARDED_THREE_NODE_PATH}" 1 3
render_mongodb_sharded_yamls "${MONGODB_SHARDED_THREE_NODE_PATH}" 1 3
render_mongodb_sharded_yamls "${MONGODB_SHARDED_SINGLE_NODE_THREE_SHARDS_PATH}" 3 1
render_mongodb_sharded_yamls "${MONGODB_SHARDED_THREE_NODE_THREE_SHARDS_PATH}" 3 3
}

function gen_manifest_yaml()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,9 @@ spec:
{{- end }}
{{- if $.Values.shardsvr.persistence.selector }}
selector:
{{ toYaml $.Values.shardsvr.persistence.selector | indent 10 }}
matchLabels:
shard: '{{ $i }}'
{{ toYaml $.Values.shardsvr.persistence.selector.matchLabels | indent 12 }}
{{- end }}
resources:
requests:
Expand Down

0 comments on commit 7968b21

Please sign in to comment.