Skip to content

Commit a927f74

Browse files
committed
Fix volume mounts to work in all cases
1 parent fc9e2f5 commit a927f74

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

charts/ibm-mq/templates/stateful-set.yaml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,8 @@ spec:
135135
volumes:
136136
{{- else if .Values.web.manualConfig.configMap.name }}
137137
volumes:
138+
{{- else if .Values.readinessProbe.useLabelPatcher }}
139+
volumes:
138140
{{- else if .Values.web.manualConfig.secret.name }}
139141
volumes:
140142
{{- end}}
@@ -273,7 +275,6 @@ spec:
273275
secretName: {{ .Values.credentials.secret }}
274276
{{- end }}
275277
{{- if .Values.readinessProbe.useLabelPatcher }}
276-
volumes:
277278
- name: state
278279
emptyDir: {}
279280
{{- end }}
@@ -412,11 +413,9 @@ spec:
412413
volumeMounts:
413414
{{- else if .Values.web.manualConfig.secret.name }}
414415
volumeMounts:
416+
{{- else if .Values.readinessProbe.useLabelPatcher }}
417+
volumeMounts:
415418
{{- end}}
416-
{{- if .Values.readinessProbe.useLabelPatcher }}
417-
- name: state
418-
mountPath: /etc/mqm/state
419-
{{- end }}
420419
{{- if .Values.queueManager.nativeha.tls }}
421420
{{- if .Values.queueManager.nativeha.tls.secretName }}
422421
- name: ha-tls
@@ -511,6 +510,10 @@ spec:
511510
- name: mq-credentials
512511
mountPath: "/var/run/secrets"
513512
{{- end }}
513+
{{- if .Values.readinessProbe.useLabelPatcher }}
514+
- name: state
515+
mountPath: /etc/mqm/state
516+
{{- end }}
514517
securityContext:
515518
allowPrivilegeEscalation: false
516519
readOnlyRootFilesystem: {{ .Values.security.readOnlyRootFilesystem }}

0 commit comments

Comments
 (0)