Skip to content

Commit

Permalink
Fixed stop script from switching namespaces needlessly
Browse files Browse the repository at this point in the history
Stop script was switching namespaces when namespace in question might
not have been available so now we ensure that this does not happen.
  • Loading branch information
sgnn7 committed May 14, 2019
1 parent b92941b commit 7a98ead
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions stop
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@ set -euo pipefail

. utils.sh

set_namespace $TEST_APP_NAMESPACE_NAME
$cli get pods

set_namespace default

if [[ $PLATFORM == openshift ]]; then
oc login -u $OSHIFT_CLUSTER_ADMIN_USERNAME
fi
Expand All @@ -17,8 +12,8 @@ if has_namespace $TEST_APP_NAMESPACE_NAME; then

printf "Waiting for $TEST_APP_NAMESPACE_NAME namespace deletion to complete"

while : ; do
printf "."
while true; do
printf '.'

if has_namespace "$TEST_APP_NAMESPACE_NAME"; then
sleep 5
Expand Down

0 comments on commit 7a98ead

Please sign in to comment.