From 5d8f6054ce67be76a128b073094e9a5563c9dd6b Mon Sep 17 00:00:00 2001 From: Yogesh Mahajan Date: Thu, 29 Jan 2026 16:47:32 +0530 Subject: [PATCH] Esnure the container deployment suuports boolean values in yaml format.#9522 --- pkg/docker/entrypoint.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/pkg/docker/entrypoint.sh b/pkg/docker/entrypoint.sh index 51ac88d2117..38b4e478538 100755 --- a/pkg/docker/entrypoint.sh +++ b/pkg/docker/entrypoint.sh @@ -61,9 +61,14 @@ EOF # This is a bit kludgy, but necessary as the container uses BusyBox/ash as # it's shell and not bash which would allow a much cleaner implementation for var in $(env | grep "^PGADMIN_CONFIG_" | cut -d "=" -f 1); do - # shellcheck disable=SC2086 - # shellcheck disable=SC2046 - echo ${var#PGADMIN_CONFIG_} = $(eval "echo \$$var") >> "${CONFIG_DISTRO_FILE_PATH}" + # Get the raw value + val=$(eval "echo \"\$$var\"") + # This normalization step is what makes 'true', 'True' + case "$(echo "$val" | tr '[:upper:]' '[:lower:]')" in + true) val="True" ;; + false) val="False" ;; + esac + echo "${var#PGADMIN_CONFIG_} = $val" >> "${CONFIG_DISTRO_FILE_PATH}" done fi