File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -319,6 +319,9 @@ spec:
319
319
- /bin/bash
320
320
- -ec
321
321
- |
322
+ {{- if .Values.usePasswordFiles }}
323
+ export SOLR_ADMIN_PASSWORD="$(< $SOLR_ADMIN_PASSWORD_FILE)"
324
+ {{- end }}
322
325
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'
323
326
{{- end }}
324
327
{{- if .Values.customReadinessProbe }}
@@ -330,6 +333,9 @@ spec:
330
333
- /bin/bash
331
334
- -ec
332
335
- |
336
+ {{- if .Values.usePasswordFiles }}
337
+ export SOLR_ADMIN_PASSWORD="$(< $SOLR_ADMIN_PASSWORD_FILE)"
338
+ {{- end }}
333
339
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\"'
334
340
{{- end }}
335
341
{{- if .Values.customStartupProbe }}
@@ -341,6 +347,9 @@ spec:
341
347
- /bin/bash
342
348
- -ec
343
349
- |
350
+ {{- if .Values.usePasswordFiles }}
351
+ export SOLR_ADMIN_PASSWORD="$(< $SOLR_ADMIN_PASSWORD_FILE)"
352
+ {{- end }}
344
353
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\"'
345
354
{{- end }}
346
355
{{- end }}
You can’t perform that action at this time.
0 commit comments