Skip to content

Commit

Permalink
Keep namespace after test run with with RELEASE_NAMESPACE=false (#152)
Browse files Browse the repository at this point in the history
* Control ns release after test run using RELEASE_NAMESPACE env

Co-authored-by: Brandon Squizzato <[email protected]>
  • Loading branch information
psegedy and bsquizz authored Nov 16, 2021
1 parent 7f06727 commit 811bd64
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cicd/_common_deploy_logic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
#COMPONENTS="component1 component2" # specific components to deploy (optional, default: all)
#COMPONENTS_W_RESOURCES="component1 component2" # components which should preserve resource settings (optional, default: none)
#DEPLOY_TIMEOUT="600" # bonfire deployment timeout parameter in seconds
#RELEASE_NAMESPACE="true" # release namespace after PR check ends (default: true)


# Env vars set by 'bootstrap.sh':
#IMAGE_TAG="abcd123" # image tag for the PR being tested
Expand Down Expand Up @@ -67,7 +69,9 @@ function teardown {
if [ ! -z "$NAMESPACE" ]; then
set +e
collect_k8s_artifacts
bonfire namespace release $NAMESPACE
if [ "${RELEASE_NAMESPACE:-true}" != "false" ]; then
bonfire namespace release $NAMESPACE
fi
fi
set -e
TEARDOWN_RAN=1
Expand Down

0 comments on commit 811bd64

Please sign in to comment.