From b72f750e87606c3f135eb2134d11b17d42fdb164 Mon Sep 17 00:00:00 2001 From: Tin Lam Date: Fri, 19 Mar 2021 01:11:30 -0500 Subject: [PATCH] fix(script): removes replacement overrides This removes the functionality to perform envsubst in the feature gate script to prevent users with specific env set running into unexpected error. This feature will be re-visited in the future to be made more robust. Signed-off-by: Tin Lam Change-Id: I6dcfd4dad138573294a9222e4e7af80c9bff4ac0 --- tools/deployment/common/get-values-overrides.sh | 8 -------- 1 file changed, 8 deletions(-) diff --git a/tools/deployment/common/get-values-overrides.sh b/tools/deployment/common/get-values-overrides.sh index 8e685ed02..7b285ab22 100755 --- a/tools/deployment/common/get-values-overrides.sh +++ b/tools/deployment/common/get-values-overrides.sh @@ -47,20 +47,12 @@ function combination () { done } -function replace_variables() { - for key in $(env); do - local arr=( $(echo $key | awk -F'=' '{ print $1, $2}') ) - sed -i "s#%%%REPLACE_${arr[0]}%%%#${arr[1]}#g" $@ - done -} - function override_file_args () { OVERRIDE_ARGS="" echoerr "We will attempt to use values-override files with the following paths:" for FILE in $(combination ${1//,/ } | uniq | tac); do FILE_PATH="${HELM_CHART_ROOT_PATH}/${HELM_CHART}/values_overrides/${FILE}.yaml" if [ -f "${FILE_PATH}" ]; then - replace_variables ${FILE_PATH} OVERRIDE_ARGS+=" --values=${FILE_PATH} " fi echoerr "${FILE_PATH}"