Skip to content

Commit

Permalink
Delete user roles on purge. (#494)
Browse files Browse the repository at this point in the history
We can't use labels to delete user roles, since that will remove user permission in simple uninstall (w/o --purge flag).
  • Loading branch information
tamalsaha committed May 22, 2018
1 parent f8744a6 commit 794d4ac
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hack/deploy/stash.sh
Expand Up @@ -257,6 +257,9 @@ if [ "$STASH_UNINSTALL" -eq 1 ]; then
# delete crd
kubectl delete crd ${crd}.stash.appscode.com || true
done

# delete user roles
kubectl delete clusterroles appscode:stash:edit appscode:stash:view
fi

echo
Expand Down

0 comments on commit 794d4ac

Please sign in to comment.