Skip to content

Commit b283b37

Browse files
committed
Fix probes
Signed-off-by: Miguel Ruiz <[email protected]>
1 parent 59a22e3 commit b283b37

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

bitnami/solr/templates/statefulset.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,9 @@ spec:
319319
- /bin/bash
320320
- -ec
321321
- |
322+
{{- if .Values.usePasswordFiles }}
323+
export SOLR_ADMIN_PASSWORD="$(< $SOLR_ADMIN_PASSWORD_FILE)"
324+
{{- end }}
322325
curl --silent --connect-timeout 15000 {{ ternary "--user ${SOLR_ADMIN_USERNAME}:${SOLR_ADMIN_PASSWORD}" "" .Values.auth.enabled }} http://localhost:${SOLR_PORT_NUMBER}/solr/admin/info/system | grep --quiet '\"status\":0'
323326
{{- end }}
324327
{{- if .Values.customReadinessProbe }}
@@ -330,6 +333,9 @@ spec:
330333
- /bin/bash
331334
- -ec
332335
- |
336+
{{- if .Values.usePasswordFiles }}
337+
export SOLR_ADMIN_PASSWORD="$(< $SOLR_ADMIN_PASSWORD_FILE)"
338+
{{- end }}
333339
curl --silent --connect-timeout 15000 {{ ternary "--user ${SOLR_ADMIN_USERNAME}:${SOLR_ADMIN_PASSWORD}" "" .Values.auth.enabled }} http://localhost:${SOLR_PORT_NUMBER}/api/node/health | grep --quiet '\"status\":\"OK\"'
334340
{{- end }}
335341
{{- if .Values.customStartupProbe }}
@@ -341,6 +347,9 @@ spec:
341347
- /bin/bash
342348
- -ec
343349
- |
350+
{{- if .Values.usePasswordFiles }}
351+
export SOLR_ADMIN_PASSWORD="$(< $SOLR_ADMIN_PASSWORD_FILE)"
352+
{{- end }}
344353
curl --silent --connect-timeout 15000 {{ ternary "--user ${SOLR_ADMIN_USERNAME}:${SOLR_ADMIN_PASSWORD}" "" .Values.auth.enabled }} http://localhost:${SOLR_PORT_NUMBER}/api/node/health | grep --quiet '\"status\":\"OK\"'
345354
{{- end }}
346355
{{- end }}

0 commit comments

Comments
 (0)