Skip to content

Commit 73860a9

Browse files
fix: update keys in mongo secret
1 parent f119eda commit 73860a9

File tree

12 files changed

+232
-12
lines changed

12 files changed

+232
-12
lines changed

charts/splunk-connect-for-snmp/templates/mongodb/mongodb-standalone-statefulset.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,12 @@ spec:
6464
valueFrom:
6565
secretKeyRef:
6666
name: {{ .Values.mongodb.auth.existingSecret }}
67-
key: {{ .Values.mongodb.auth.rootUserKey | quote | default "root-user" }}
67+
key: {{ .Values.mongodb.auth.rootUserKey | default "root-user" | quote }}
6868
- name: MONGO_INITDB_ROOT_PASSWORD
6969
valueFrom:
7070
secretKeyRef:
7171
name: {{ .Values.mongodb.auth.existingSecret }}
72-
key: {{ .Values.mongodb.auth.rootPasswordKey | quote | default "root-password" }}
72+
key: {{ .Values.mongodb.auth.rootPasswordKey | default "root-password" | quote }}
7373
{{- else }}
7474
- name: MONGO_INITDB_ROOT_USERNAME
7575
valueFrom:

rendered/manifests/tests/splunk-connect-for-snmp/templates/mongodb/mongodb-standalone-statefulset.yaml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,33 @@ spec:
2121
app: release-name-mongodb
2222
mode: standalone
2323
spec:
24+
securityContext:
25+
enabled: true
26+
fsGroup: 1001
27+
fsGroupChangePolicy: Always
28+
supplementalGroups: []
29+
sysctls: []
2430

2531
initContainers:
2632

2733
containers:
2834
- name: mongodb
29-
image: "mongo:7.0"
35+
image: "mongo:8.2.2"
3036
imagePullPolicy: IfNotPresent
37+
securityContext:
38+
allowPrivilegeEscalation: false
39+
capabilities:
40+
drop:
41+
- ALL
42+
enabled: true
43+
privileged: false
44+
readOnlyRootFilesystem: true
45+
runAsGroup: 1001
46+
runAsNonRoot: true
47+
runAsUser: 1001
48+
seLinuxOptions: {}
49+
seccompProfile:
50+
type: RuntimeDefault
3151

3252
ports:
3353
- containerPort: 27017

rendered/manifests/tests_autoscaling_enabled/splunk-connect-for-snmp/templates/mongodb/mongodb-standalone-statefulset.yaml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,33 @@ spec:
2121
app: release-name-mongodb
2222
mode: standalone
2323
spec:
24+
securityContext:
25+
enabled: true
26+
fsGroup: 1001
27+
fsGroupChangePolicy: Always
28+
supplementalGroups: []
29+
sysctls: []
2430

2531
initContainers:
2632

2733
containers:
2834
- name: mongodb
29-
image: "mongo:7.0"
35+
image: "mongo:8.2.2"
3036
imagePullPolicy: IfNotPresent
37+
securityContext:
38+
allowPrivilegeEscalation: false
39+
capabilities:
40+
drop:
41+
- ALL
42+
enabled: true
43+
privileged: false
44+
readOnlyRootFilesystem: true
45+
runAsGroup: 1001
46+
runAsNonRoot: true
47+
runAsUser: 1001
48+
seLinuxOptions: {}
49+
seccompProfile:
50+
type: RuntimeDefault
3151

3252
ports:
3353
- containerPort: 27017

rendered/manifests/tests_autoscaling_enabled_deprecated/splunk-connect-for-snmp/templates/mongodb/mongodb-standalone-statefulset.yaml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,33 @@ spec:
2121
app: release-name-mongodb
2222
mode: standalone
2323
spec:
24+
securityContext:
25+
enabled: true
26+
fsGroup: 1001
27+
fsGroupChangePolicy: Always
28+
supplementalGroups: []
29+
sysctls: []
2430

2531
initContainers:
2632

2733
containers:
2834
- name: mongodb
29-
image: "mongo:7.0"
35+
image: "mongo:8.2.2"
3036
imagePullPolicy: IfNotPresent
37+
securityContext:
38+
allowPrivilegeEscalation: false
39+
capabilities:
40+
drop:
41+
- ALL
42+
enabled: true
43+
privileged: false
44+
readOnlyRootFilesystem: true
45+
runAsGroup: 1001
46+
runAsNonRoot: true
47+
runAsUser: 1001
48+
seLinuxOptions: {}
49+
seccompProfile:
50+
type: RuntimeDefault
3151

3252
ports:
3353
- containerPort: 27017

rendered/manifests/tests_enable_ui/splunk-connect-for-snmp/templates/mongodb/mongodb-standalone-statefulset.yaml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,33 @@ spec:
2121
app: release-name-mongodb
2222
mode: standalone
2323
spec:
24+
securityContext:
25+
enabled: true
26+
fsGroup: 1001
27+
fsGroupChangePolicy: Always
28+
supplementalGroups: []
29+
sysctls: []
2430

2531
initContainers:
2632

2733
containers:
2834
- name: mongodb
29-
image: "mongo:7.0"
35+
image: "mongo:8.2.2"
3036
imagePullPolicy: IfNotPresent
37+
securityContext:
38+
allowPrivilegeEscalation: false
39+
capabilities:
40+
drop:
41+
- ALL
42+
enabled: true
43+
privileged: false
44+
readOnlyRootFilesystem: true
45+
runAsGroup: 1001
46+
runAsNonRoot: true
47+
runAsUser: 1001
48+
seLinuxOptions: {}
49+
seccompProfile:
50+
type: RuntimeDefault
3151

3252
ports:
3353
- containerPort: 27017

rendered/manifests/tests_metallb_false/splunk-connect-for-snmp/templates/mongodb/mongodb-standalone-statefulset.yaml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,33 @@ spec:
2121
app: release-name-mongodb
2222
mode: standalone
2323
spec:
24+
securityContext:
25+
enabled: true
26+
fsGroup: 1001
27+
fsGroupChangePolicy: Always
28+
supplementalGroups: []
29+
sysctls: []
2430

2531
initContainers:
2632

2733
containers:
2834
- name: mongodb
29-
image: "mongo:7.0"
35+
image: "mongo:8.2.2"
3036
imagePullPolicy: IfNotPresent
37+
securityContext:
38+
allowPrivilegeEscalation: false
39+
capabilities:
40+
drop:
41+
- ALL
42+
enabled: true
43+
privileged: false
44+
readOnlyRootFilesystem: true
45+
runAsGroup: 1001
46+
runAsNonRoot: true
47+
runAsUser: 1001
48+
seLinuxOptions: {}
49+
seccompProfile:
50+
type: RuntimeDefault
3151

3252
ports:
3353
- containerPort: 27017

rendered/manifests/tests_mongodb_custom_image/splunk-connect-for-snmp/templates/mongodb/mongodb-standalone-statefulset.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,33 @@ spec:
2121
app: release-name-mongodb
2222
mode: standalone
2323
spec:
24+
securityContext:
25+
enabled: true
26+
fsGroup: 1001
27+
fsGroupChangePolicy: Always
28+
supplementalGroups: []
29+
sysctls: []
2430

2531
initContainers:
2632

2733
containers:
2834
- name: mongodb
2935
image: "bitnamilegacy/mongodb:8.0.13-debian-10-r0"
3036
imagePullPolicy: IfNotPresent
37+
securityContext:
38+
allowPrivilegeEscalation: false
39+
capabilities:
40+
drop:
41+
- ALL
42+
enabled: true
43+
privileged: false
44+
readOnlyRootFilesystem: true
45+
runAsGroup: 1001
46+
runAsNonRoot: true
47+
runAsUser: 1001
48+
seLinuxOptions: {}
49+
seccompProfile:
50+
type: RuntimeDefault
3151

3252
ports:
3353
- containerPort: 27017

rendered/manifests/tests_only_polling/splunk-connect-for-snmp/templates/mongodb/mongodb-standalone-statefulset.yaml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,33 @@ spec:
2121
app: release-name-mongodb
2222
mode: standalone
2323
spec:
24+
securityContext:
25+
enabled: true
26+
fsGroup: 1001
27+
fsGroupChangePolicy: Always
28+
supplementalGroups: []
29+
sysctls: []
2430

2531
initContainers:
2632

2733
containers:
2834
- name: mongodb
29-
image: "mongo:7.0"
35+
image: "mongo:8.2.2"
3036
imagePullPolicy: IfNotPresent
37+
securityContext:
38+
allowPrivilegeEscalation: false
39+
capabilities:
40+
drop:
41+
- ALL
42+
enabled: true
43+
privileged: false
44+
readOnlyRootFilesystem: true
45+
runAsGroup: 1001
46+
runAsNonRoot: true
47+
runAsUser: 1001
48+
seLinuxOptions: {}
49+
seccompProfile:
50+
type: RuntimeDefault
3151

3252
ports:
3353
- containerPort: 27017

rendered/manifests/tests_only_traps/splunk-connect-for-snmp/templates/mongodb/mongodb-standalone-statefulset.yaml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,33 @@ spec:
2121
app: release-name-mongodb
2222
mode: standalone
2323
spec:
24+
securityContext:
25+
enabled: true
26+
fsGroup: 1001
27+
fsGroupChangePolicy: Always
28+
supplementalGroups: []
29+
sysctls: []
2430

2531
initContainers:
2632

2733
containers:
2834
- name: mongodb
29-
image: "mongo:7.0"
35+
image: "mongo:8.2.2"
3036
imagePullPolicy: IfNotPresent
37+
securityContext:
38+
allowPrivilegeEscalation: false
39+
capabilities:
40+
drop:
41+
- ALL
42+
enabled: true
43+
privileged: false
44+
readOnlyRootFilesystem: true
45+
runAsGroup: 1001
46+
runAsNonRoot: true
47+
runAsUser: 1001
48+
seLinuxOptions: {}
49+
seccompProfile:
50+
type: RuntimeDefault
3151

3252
ports:
3353
- containerPort: 27017

rendered/manifests/tests_probes_enabled/splunk-connect-for-snmp/templates/mongodb/mongodb-standalone-statefulset.yaml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,33 @@ spec:
2121
app: release-name-mongodb
2222
mode: standalone
2323
spec:
24+
securityContext:
25+
enabled: true
26+
fsGroup: 1001
27+
fsGroupChangePolicy: Always
28+
supplementalGroups: []
29+
sysctls: []
2430

2531
initContainers:
2632

2733
containers:
2834
- name: mongodb
29-
image: "mongo:7.0"
35+
image: "mongo:8.2.2"
3036
imagePullPolicy: IfNotPresent
37+
securityContext:
38+
allowPrivilegeEscalation: false
39+
capabilities:
40+
drop:
41+
- ALL
42+
enabled: true
43+
privileged: false
44+
readOnlyRootFilesystem: true
45+
runAsGroup: 1001
46+
runAsNonRoot: true
47+
runAsUser: 1001
48+
seLinuxOptions: {}
49+
seccompProfile:
50+
type: RuntimeDefault
3151

3252
ports:
3353
- containerPort: 27017

0 commit comments

Comments
 (0)