From 928c64433e5d32dab341d9217f86497871e26237 Mon Sep 17 00:00:00 2001 From: Pierre Smeyers <pierre.smeyers@gmail.com> Date: Sat, 17 Dec 2022 15:44:34 +0100 Subject: [PATCH] refactor: remove old variables and values BREAKING CHANGE: former dynamic variables $env and $appname removed: use $environment_type and $environment_name instead BREAKING CHANGE: former dynamic value {{env}} removed: use {{environment_type}} instead --- templates/gitlab-ci-helm.yml | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/templates/gitlab-ci-helm.yml b/templates/gitlab-ci-helm.yml index 484c200..40f333c 100644 --- a/templates/gitlab-ci-helm.yml +++ b/templates/gitlab-ci-helm.yml @@ -386,10 +386,6 @@ stages: values_files=$4 environment_url=$5 - # backwards compatibility - export env=$environment_type - export appname=$environment_name - # variables expansion in $environment_url environment_url=$(echo "$environment_url" | awkenvsubst) export environment_url @@ -420,8 +416,6 @@ stages: helm_opts="$helm_opts --set ${HELM_ENV_VALUE_NAME}=$environment_type" helm_opts="$helm_opts --set ${HELM_HOSTNAME_VALUE_NAME}=$hostname" - # backward compatibility - helm_opts="$helm_opts --set env=$environment_type" if [ -n "$HELM_COMMON_VALUES" ]; then log_info "--- using \\e[32mcommon values\\e[0m file: \\e[33;1m${HELM_COMMON_VALUES}\\e[0m" @@ -484,10 +478,6 @@ stages: export environment_name=$2 namespace=$3 - # backwards compatibility - export env=$environment_type - export appname=$environment_name - log_info "--- \\e[32mdelete" log_info "--- \$namespace: \\e[33;1m${namespace}\\e[0m" log_info "--- \$environment_type: \\e[33;1m${environment_type}\\e[0m" -- GitLab