Skip to content

Commit

Permalink
fix: dont try helm with --remove arg
Browse files Browse the repository at this point in the history
  • Loading branch information
zzorica committed Jan 19, 2024
1 parent b506c6f commit 0ce94a8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -390,13 +390,16 @@ EOF'
cleanup() {
calling_function="cleanup"
echo -e "${INFO} Cleaning up..."
check_helm_release watkins watkins

if [[ $1 != "--remove" ]]; then
check_helm_release watkins watkins
fi
rm -rf ingress-values.yaml \
longhorn-values.yaml \
watkins-values.yaml
}

trap '[[ $1 != "--version" && $1 != "--help" ]] && cleanup' EXIT
trap '[[ $1 != "--version" && $1 != "--help" ]] && cleanup "$1"' EXIT

# Install k3s and setup kubeconfig
install_k3s() {
Expand Down

0 comments on commit 0ce94a8

Please sign in to comment.