File tree Expand file tree Collapse file tree 11 files changed +40
-41
lines changed
distros/kubernetes/nvsentinel/charts/mongodb-store Expand file tree Collapse file tree 11 files changed +40
-41
lines changed Original file line number Diff line number Diff line change @@ -8,5 +8,5 @@ dependencies:
88- name: psmdb-db
99 repository: ""
1010 version: 1.21.1
11- digest: sha256:6c3f19302e146b500b13919d0b3b89a0f37e069ce719e8daadfda1a82302418d
12- generated: "2025-11-19T14:50 :21.20416968 +05:30"
11+ digest: sha256:52544f60c2e88079cc18da78164440e042103e5adc065668a648864e2ad938b9
12+ generated: "2025-11-19T15:26 :21.985280107 +05:30"
Original file line number Diff line number Diff line change @@ -23,12 +23,12 @@ dependencies:
2323 - name : mongodb
2424 version : " 16.2.2"
2525 repository : " "
26- condition : mongodb-store. useBitnami
26+ condition : useBitnami
2727 - name : psmdb-operator
2828 version : " 1.21.1"
2929 repository : " "
30- condition : mongodb-store. usePerconaOperator
30+ condition : usePerconaOperator
3131 - name : psmdb-db
3232 version : " 1.21.1"
3333 repository : " "
34- condition : mongodb-store. usePerconaOperator
34+ condition : usePerconaOperator
Original file line number Diff line number Diff line change 1212# See the License for the specific language governing permissions and
1313# limitations under the License.
1414
15- {{- if index .Values "mongodb-store" " usePerconaOperator" }}
15+ {{- if .Values. usePerconaOperator }}
1616---
1717apiVersion : cert-manager.io/v1
1818kind : Certificate
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ kind: ConfigMap
1717metadata :
1818 name : mongodb-config
1919data :
20- {{- if index .Values "mongodb-store" " usePerconaOperator" }}
20+ {{- if .Values. usePerconaOperator }}
2121 MONGODB_URI : {{ printf "mongodb://mongodb-rs0.%s.svc.cluster.local:27017/?replicaSet=rs0&tls=true" .Release.Namespace }}
2222{{- else }}
2323 MONGODB_URI : {{ printf "mongodb://mongodb-headless.%s.svc.cluster.local:27017/?replicaSet=rs0&tls=true" .Release.Namespace }}
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ subjects:
4444{{- $issuerSecret := "mongo-root-ca-secret" }}
4545{{- $passwordSecretName := "mongodb" }}
4646{{- $passwordSecretKey := "mongodb-root-password" }}
47- {{- if index .Values "mongodb-store" " usePerconaOperator" }}
47+ {{- if .Values. usePerconaOperator }}
4848 {{- $helperImages = .Values.psmdb.helperImages }}
4949 {{- $rootUsername = "$MONGODB_ROOT_USER" }}
5050 {{- $issuerSecret = "mongodb-ca-cert" }}
6868 {{- toYaml . | nindent 8 }}
6969 {{- end }}
7070 initContainers :
71- {{- if index .Values "mongodb-store" " usePerconaOperator" }}
71+ {{- if .Values. usePerconaOperator }}
7272 # Percona-specific init containers
7373 # Create MongoDB keyfile and encryption key secrets if they don't exist
7474 - name : create-mongodb-secrets
@@ -332,7 +332,7 @@ spec:
332332 echo "mongodb user creation completed."
333333 echo "=============================="
334334 env :
335- {{- if index .Values "mongodb-store" " usePerconaOperator" }}
335+ {{- if .Values. usePerconaOperator }}
336336 - name : MONGODB_CLUSTER_MONITOR_USER
337337 valueFrom :
338338 secretKeyRef :
Original file line number Diff line number Diff line change 1- {{- if index .Values "mongodb-store" " usePerconaOperator" }}
1+ {{- if .Values. usePerconaOperator }}
22apiVersion : v1
33kind : Service
44metadata :
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ metadata:
1818 name : mongodb-networkpolicy
1919spec :
2020 podSelector :
21- {{- if index .Values "mongodb-store" " usePerconaOperator" }}
21+ {{- if .Values. usePerconaOperator }}
2222 matchLabels :
2323 app.kubernetes.io/name : percona-server-mongodb
2424{{- else }}
3333 - ports :
3434 - port : 27017
3535 protocol : TCP
36- {{- if index .Values "mongodb-store" " usePerconaOperator" }}
36+ {{- if .Values. usePerconaOperator }}
3737 - port : 9216
3838 protocol : TCP
3939{{- end }}
Original file line number Diff line number Diff line change 1313# limitations under the License.
1414
1515{{ if (eq .Values.mode "manual") }}
16- {{- if index .Values "mongodb-store" " usePerconaOperator" }}
16+ {{- if .Values. usePerconaOperator }}
1717{{- /* Percona PVs - one per replica */ -}}
1818{{- $replicaCount := index .Values "psmdb-db" "replsets" "rs0" "size" | default 3 | int }}
1919{{- range $i := until $replicaCount }}
Original file line number Diff line number Diff line change 1212# See the License for the specific language governing permissions and
1313# limitations under the License.
1414
15- {{- if not (index .Values "mongodb-store" " usePerconaOperator") }}
15+ {{- if not .Values. usePerconaOperator }}
1616apiVersion : rbac.authorization.k8s.io/v1
1717kind : Role
1818metadata :
Original file line number Diff line number Diff line change 1212# See the License for the specific language governing permissions and
1313# limitations under the License.
1414
15- {{- if not (index .Values "mongodb-store" " usePerconaOperator") }}
15+ {{- if not .Values. usePerconaOperator }}
1616apiVersion : rbac.authorization.k8s.io/v1
1717kind : RoleBinding
1818metadata :
You can’t perform that action at this time.
0 commit comments