File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed
bitnami/rabbitmq/templates Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -342,11 +342,7 @@ spec:
342
342
{{- if or (.Values.loadDefinition.enabled) (not (contains "rabbitmq_management" .Values.plugins )) }}
343
343
- rabbitmq-diagnostics -q ping
344
344
{{- else }}
345
- {{- if .Values.usePasswordFiles }}
346
- - curl -f --user "{{ .Values.auth.username }}:$(< $RABBITMQ_PASSWORD_FILE)" 127.0.0.1:{{ .Values.containerPorts.manager }}/api/health/checks/virtual-hosts
347
- {{- else }}
348
- - curl -f --user {{ .Values.auth.username }}:$RABBITMQ_PASSWORD 127.0.0.1:{{ .Values.containerPorts.manager }}/api/health/checks/virtual-hosts
349
- {{- end }}
345
+ - curl -f --user {{ .Values.auth.username }}:{{ ternary "$(< $RABBITMQ_PASSWORD_FILE)" "$RABBITMQ_PASSWORD" .Values.usePasswordFiles }} 127.0.0.1:{{ .Values.containerPorts.manager }}/api/health/checks/virtual-hosts
350
346
{{- end }}
351
347
{{- end }}
352
348
{{- if .Values.customReadinessProbe }}
@@ -360,11 +356,7 @@ spec:
360
356
{{- if or (.Values.loadDefinition.enabled) (not (contains "rabbitmq_management" .Values.plugins )) }}
361
357
- rabbitmq-diagnostics -q check_running && rabbitmq-diagnostics -q check_local_alarms
362
358
{{- else }}
363
- {{- if .Values.usePasswordFiles }}
364
- - curl -f --user "{{ .Values.auth.username }}:$(< $RABBITMQ_PASSWORD_FILE)" 127.0.0.1:{{ .Values.containerPorts.manager }}/api/health/checks/local-alarms
365
- {{- else }}
366
- - curl -f --user {{ .Values.auth.username }}:$RABBITMQ_PASSWORD 127.0.0.1:{{ .Values.containerPorts.manager }}/api/health/checks/local-alarms
367
- {{- end }}
359
+ - curl -f --user {{ .Values.auth.username }}:{{ ternary "$(< $RABBITMQ_PASSWORD_FILE)" "$RABBITMQ_PASSWORD" .Values.usePasswordFiles }} 127.0.0.1:{{ .Values.containerPorts.manager }}/api/health/checks/local-alarms
368
360
{{- end }}
369
361
{{- end }}
370
362
{{- if .Values.customStartupProbe }}
You can’t perform that action at this time.
0 commit comments