mirror of
https://github.com/bitnami/containers.git
synced 2026-10-17 09:20:53 +02:00
[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:
@@ -910,8 +910,9 @@ 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)
|
||||
command_args+=("-o" "$output" "${protocol}://${host}:${DB_HTTP_PORT_NUMBER}/_cluster/health?local=true")
|
||||
|
||||
@@ -910,8 +910,9 @@ 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)
|
||||
command_args+=("-o" "$output" "${protocol}://${host}:${DB_HTTP_PORT_NUMBER}/_cluster/health?local=true")
|
||||
|
||||
Reference in New Issue
Block a user