Skip to content

Commit

Permalink
Specify namespace for helm 3 uninstall (#966)
Browse files Browse the repository at this point in the history
* Fix helm3 uninstall option

* fix makefile
  • Loading branch information
Young Bu Park committed Jan 27, 2020
1 parent a76b809 commit c8ae917
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/dapr_tests.mk
Original file line number Diff line number Diff line change
Expand Up @@ -100,5 +100,5 @@ setup-test-components:
$(KUBECTL) get components --namespace $(DAPR_TEST_NAMESPACE)

# Clean up test environment
clean-test-env: $(HOME)/.helm
clean-test-env:
./tests/test-infra/clean_up.sh $(DAPR_TEST_NAMESPACE)
5 changes: 3 additions & 2 deletions tests/test-infra/clean_up.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@

[ -z "$1" ] && echo "Namespace must be specified" && exit 0

installed_apps=$(helm list -q)
installed_apps=$(helm list -q -n $1)
echo $installed_apps

for app in $installed_apps; do
helm delete --purge $app
helm uninstall $app -n $1
done

echo "Trying to delete namespace..."
Expand Down

0 comments on commit c8ae917

Please sign in to comment.