Skip to content

Commit 279d93e

Browse files
Patch pv selectors
1 parent d4a1242 commit 279d93e

File tree

3 files changed

+28
-2
lines changed

3 files changed

+28
-2
lines changed

solution-base/mongodb/charts/mongodb-sharded/templates/config-server/config-server-statefulset.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ spec:
450450
storage: {{ .Values.configsvr.persistence.size | quote }}
451451
{{- with .Values.configsvr.persistence.selector }}
452452
selector:
453-
{{- include "common.tplvalues.render" (dict "value" .Values.configsvr.persistence.selector "context" $) | nindent 10 }}
453+
{{ toYaml $.Values.shardsvr.persistence.selector | indent 10 }}
454454
{{- end }}
455455
{{- include "common.storage.class" (dict "persistence" .Values.configsvr.persistence "global" .Values.global) | nindent 8 }}
456456
{{- end }}

solution-base/mongodb/charts/mongodb-sharded/templates/shard/shard-data-statefulset.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ spec:
457457
storage: {{ $.Values.shardsvr.persistence.size | quote }}
458458
{{- with $.Values.shardsvr.persistence.selector }}
459459
selector:
460-
{{- include "common.tplvalues.render" (dict "value" $.Values.shardsvr.persistence.selector "context" (merge $ (dict "Index" $i))) | nindent 10 }}
460+
{{ toYaml $.Values.shardsvr.persistence.selector | indent 10 }}
461461
{{- end }}
462462
{{- include "common.storage.class" (dict "persistence" $.Values.shardsvr.persistence "global" $.Values.global) | nindent 8 }}
463463
{{- end }}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
diff --git a/solution-base/mongodb/charts/mongodb-sharded/templates/config-server/config-server-statefulset.yaml b/solution-base/mongodb/charts/mongodb-sharded/templates/config-server/config-server-statefulset.yaml
2+
index d82fb6c8..f48a8e70 100644
3+
--- a/solution-base/mongodb/charts/mongodb-sharded/templates/config-server/config-server-statefulset.yaml
4+
+++ b/solution-base/mongodb/charts/mongodb-sharded/templates/config-server/config-server-statefulset.yaml
5+
@@ -450,7 +450,7 @@ spec:
6+
storage: {{ .Values.configsvr.persistence.size | quote }}
7+
{{- with .Values.configsvr.persistence.selector }}
8+
selector:
9+
- {{- include "common.tplvalues.render" (dict "value" .Values.configsvr.persistence.selector "context" $) | nindent 10 }}
10+
+{{ toYaml $.Values.shardsvr.persistence.selector | indent 10 }}
11+
{{- end }}
12+
{{- include "common.storage.class" (dict "persistence" .Values.configsvr.persistence "global" .Values.global) | nindent 8 }}
13+
{{- end }}
14+
diff --git a/solution-base/mongodb/charts/mongodb-sharded/templates/shard/shard-data-statefulset.yaml b/solution-base/mongodb/charts/mongodb-sharded/templates/shard/shard-data-statefulset.yaml
15+
index d6a593a6..68974ddd 100644
16+
--- a/solution-base/mongodb/charts/mongodb-sharded/templates/shard/shard-data-statefulset.yaml
17+
+++ b/solution-base/mongodb/charts/mongodb-sharded/templates/shard/shard-data-statefulset.yaml
18+
@@ -457,7 +457,7 @@ spec:
19+
storage: {{ $.Values.shardsvr.persistence.size | quote }}
20+
{{- with $.Values.shardsvr.persistence.selector }}
21+
selector:
22+
- {{- include "common.tplvalues.render" (dict "value" $.Values.shardsvr.persistence.selector "context" (merge $ (dict "Index" $i))) | nindent 10 }}
23+
+{{ toYaml $.Values.shardsvr.persistence.selector | indent 10 }}
24+
{{- end }}
25+
{{- include "common.storage.class" (dict "persistence" $.Values.shardsvr.persistence "global" $.Values.global) | nindent 8 }}
26+
{{- end }}

0 commit comments

Comments
 (0)