Skip to content

Commit c4a1f9f

Browse files
fix: fixed flags and values
1 parent ac20b15 commit c4a1f9f

File tree

11 files changed

+40
-41
lines changed

11 files changed

+40
-41
lines changed

distros/kubernetes/nvsentinel/charts/mongodb-store/Chart.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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"

distros/kubernetes/nvsentinel/charts/mongodb-store/Chart.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

distros/kubernetes/nvsentinel/charts/mongodb-store/templates/certmanager.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
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
---
1717
apiVersion: cert-manager.io/v1
1818
kind: Certificate

distros/kubernetes/nvsentinel/charts/mongodb-store/templates/configmap.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ kind: ConfigMap
1717
metadata:
1818
name: mongodb-config
1919
data:
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 }}

distros/kubernetes/nvsentinel/charts/mongodb-store/templates/jobs.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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" }}
@@ -68,7 +68,7 @@ spec:
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:

distros/kubernetes/nvsentinel/charts/mongodb-store/templates/metrics-service.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if index .Values "mongodb-store" "usePerconaOperator" }}
1+
{{- if .Values.usePerconaOperator }}
22
apiVersion: v1
33
kind: Service
44
metadata:

distros/kubernetes/nvsentinel/charts/mongodb-store/templates/networkpolicy.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ metadata:
1818
name: mongodb-networkpolicy
1919
spec:
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 }}
@@ -33,7 +33,7 @@ spec:
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 }}

distros/kubernetes/nvsentinel/charts/mongodb-store/templates/pv.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
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 }}

distros/kubernetes/nvsentinel/charts/mongodb-store/templates/role.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
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 }}
1616
apiVersion: rbac.authorization.k8s.io/v1
1717
kind: Role
1818
metadata:

distros/kubernetes/nvsentinel/charts/mongodb-store/templates/rolebinding.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
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 }}
1616
apiVersion: rbac.authorization.k8s.io/v1
1717
kind: RoleBinding
1818
metadata:

0 commit comments

Comments
 (0)