Skip to content
Snippets Groups Projects
Commit 928c6443 authored by Pierre Smeyers's avatar Pierre Smeyers
Browse files

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
parent c5770bd5
No related branches found
No related tags found
No related merge requests found
...@@ -386,10 +386,6 @@ stages: ...@@ -386,10 +386,6 @@ stages:
values_files=$4 values_files=$4
environment_url=$5 environment_url=$5
# backwards compatibility
export env=$environment_type
export appname=$environment_name
# variables expansion in $environment_url # variables expansion in $environment_url
environment_url=$(echo "$environment_url" | awkenvsubst) environment_url=$(echo "$environment_url" | awkenvsubst)
export environment_url export environment_url
...@@ -420,8 +416,6 @@ stages: ...@@ -420,8 +416,6 @@ stages:
helm_opts="$helm_opts --set ${HELM_ENV_VALUE_NAME}=$environment_type" helm_opts="$helm_opts --set ${HELM_ENV_VALUE_NAME}=$environment_type"
helm_opts="$helm_opts --set ${HELM_HOSTNAME_VALUE_NAME}=$hostname" 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 if [ -n "$HELM_COMMON_VALUES" ]; then
log_info "--- using \\e[32mcommon values\\e[0m file: \\e[33;1m${HELM_COMMON_VALUES}\\e[0m" log_info "--- using \\e[32mcommon values\\e[0m file: \\e[33;1m${HELM_COMMON_VALUES}\\e[0m"
...@@ -484,10 +478,6 @@ stages: ...@@ -484,10 +478,6 @@ stages:
export environment_name=$2 export environment_name=$2
namespace=$3 namespace=$3
# backwards compatibility
export env=$environment_type
export appname=$environment_name
log_info "--- \\e[32mdelete" log_info "--- \\e[32mdelete"
log_info "--- \$namespace: \\e[33;1m${namespace}\\e[0m" log_info "--- \$namespace: \\e[33;1m${namespace}\\e[0m"
log_info "--- \$environment_type: \\e[33;1m${environment_type}\\e[0m" log_info "--- \$environment_type: \\e[33;1m${environment_type}\\e[0m"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment