File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4242 volumeMounts :
4343 {{- toYaml . | nindent 16 }}
4444 {{- end }}
45+ {{- with .Values.mongodbEnv }}
46+ env :
47+ {{- toYaml . | nindent 16 }}
48+ {{- end }}
4549 - name : mongodb-agent
4650 imagePullPolicy : {{ .Values.image.pullPolicy }}
4751 {{- with .Values.agent.resources }}
Original file line number Diff line number Diff line change @@ -110,4 +110,15 @@ users:
110110# https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#volume-claim-templates
111111
112112extraVolumeMounts : []
113- extraVolumeClaimTemplates : []
113+ extraVolumeClaimTemplates : []
114+
115+ # mongodbEnv parameter is a list to specify environment variables
116+ # this is only possible with the mongod container, and not the agent
117+ #
118+ # mongodbEnv:
119+ # - name: MONGO_TEST_USER
120+ # valueFrom:
121+ # secretKeyRef:
122+ # name: mongodb-app-secret
123+ # key: mongodb-user-name
124+ mongodbEnv : {}
You can’t perform that action at this time.
0 commit comments