[valkey-cluster] fix: respect VALKEY_EXTRA_FLAGS (#80655)

Signed-off-by: Andrei Bobokhin <imtpot@mayflower.work>
Co-authored-by: imtpot <imtpot@mayflower.work>
This commit is contained in:
imtpot
2025-05-07 12:29:10 +03:00
committed by GitHub
parent 5227fb5048
commit c457887af9

View File

@@ -32,6 +32,10 @@ else
ARGS+=("--protected-mode" "no")
fi
# Add flags specified via the 'VALKEY_EXTRA_FLAGS' environment variable
read -r -a extra_flags <<< "$VALKEY_EXTRA_FLAGS"
[[ "${#extra_flags[@]}" -gt 0 ]] && ARGS+=("${extra_flags[@]}")
ARGS+=("$@")
if is_boolean_yes "$VALKEY_CLUSTER_CREATOR" && ! [[ -f "${VALKEY_DATA_DIR}/nodes.conf" ]]; then