diff --git a/run.sh b/run.sh index 22d5e23..84c176f 100755 --- a/run.sh +++ b/run.sh @@ -11,8 +11,9 @@ enable_ssl= api_replicas= fluentd=false seed_db=false +uninstall=false -while getopts "idfhp:s:r:" arg; do +while getopts "idufhp:s:r:" arg; do case $arg in i) interactive=true ;; p) postgres_version=${OPTARG} ;; @@ -20,6 +21,7 @@ while getopts "idfhp:s:r:" arg; do r) api_replicas=${OPTARG} ;; f) fluentd=true ;; d) seed_db=true ;; + u) uninstall=true ;; *) usage ;; esac done @@ -82,6 +84,11 @@ $START_MINIKUBE && minikube addons enable ingress helm dependency list helm | grep -q "missing" && helm dependency build helm +if [ "$uninstall" == true ]; then + helm uninstall exam -n exam + exit 0 +fi + VALUES=("-f" "helm/values.yaml") if [ "$fluentd" == true ] || [ "$fluentd" == "y" ] || [ "$fluentd" == "Y" ]; then