[bitnami/elasticsearch] Fix readiness/liveness probe not working if "restEncryption: false" in values.yaml (#47319)

Signed-off-by: Andrea Rabbaglietti <rabbagliettiandrea@gmail.com>
This commit is contained in:
Andrea Rabbaglietti 2023-09-13 10:28:23 +02:00 committed by GitHub
parent c21171d236
commit 1291c97f39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

View File

@ -910,7 +910,8 @@ elasticsearch_healthcheck() {
host=$(get_elasticsearch_hostname)
is_boolean_yes "$DB_ENABLE_SECURITY" && is_boolean_yes "$DB_ENABLE_REST_TLS" && protocol="https" && command_args+=("-k" "--user" "${DB_USERNAME}:${DB_PASSWORD}")
is_boolean_yes "$DB_ENABLE_SECURITY" && command_args+=("-k" "--user" "${DB_USERNAME}:${DB_PASSWORD}")
is_boolean_yes "$DB_ENABLE_REST_TLS" && protocol="https"
# Combination of --silent, --output and --write-out allows us to obtain both the status code and the request body
output=$(mktemp)

View File

@ -910,7 +910,8 @@ elasticsearch_healthcheck() {
host=$(get_elasticsearch_hostname)
is_boolean_yes "$DB_ENABLE_SECURITY" && is_boolean_yes "$DB_ENABLE_REST_TLS" && protocol="https" && command_args+=("-k" "--user" "${DB_USERNAME}:${DB_PASSWORD}")
is_boolean_yes "$DB_ENABLE_SECURITY" && command_args+=("-k" "--user" "${DB_USERNAME}:${DB_PASSWORD}")
is_boolean_yes "$DB_ENABLE_REST_TLS" && protocol="https"
# Combination of --silent, --output and --write-out allows us to obtain both the status code and the request body
output=$(mktemp)