Skip to content
This repository has been archived by the owner on Nov 25, 2021. It is now read-only.

Commit

Permalink
cli: add uninstall
Browse files Browse the repository at this point in the history
Since we have an `install`, it makes sense to have an `uninstall` also.

Signed-off-by: suskin <[email protected]>
  • Loading branch information
suskin committed Aug 30, 2019
1 parent ff47745 commit 489c15b
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions bin/kubectl-crossplane-stack-uninstall
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/usr/bin/env bash

set -e

function usage {
echo "Usage: kubectl crossplane stack uninstall STACK_NAME" >&2
echo "" >&2
echo "STACK_NAME is the name of the stack to uninstall." >&2
}

if [[ $# -lt 1 ]] ; then
usage
exit 1
fi

STACK_NAME="${1}"

kubectl delete stackrequest "${STACK_NAME}" "$@"

0 comments on commit 489c15b

Please sign in to comment.