Add down command to uninstall and delete data (#1285)

Small improvement to `btrix` helper. Adds `./btrix down` command to
uninstall and delete data without resetting the dev environment.
This commit is contained in:
Tessa Walsh 2023-10-13 20:16:12 -04:00 committed by GitHub
parent c5ca250f37
commit aa3f1ebf5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

16
btrix
View File

@ -17,11 +17,16 @@
# -wait: Wait until pods are ready # -wait: Wait until pods are ready
# #
# $ ./btrix reset # $ ./btrix reset
# Uinstall, delete data, then bootstrap # Uninstall, delete data, then bootstrap
# Optional args: # Optional args:
# -microk8s: Preface kubectl/helm commands with microk8s # -microk8s: Preface kubectl/helm commands with microk8s
# -wait: Wait until pods are ready # -wait: Wait until pods are ready
# #
# $ ./btrix down
# Uninstall and delete data
# Optional args:
# -microk8s: Preface kubectl/helm commands with microk8s
#
# $ ./btrix test # $ ./btrix test
# Run backend tests # Run backend tests
# #
@ -170,4 +175,13 @@ if [[ $1 = "nightly" ]]; then
runNightlyTests runNightlyTests
fi fi
# down: stop and uninstall browsertrix cloud
if [[ $1 = "down" ]]; then
if [[ $2 = "$MICROK8S" ]] ; then
resetMicrok8s
else
reset
fi
fi
echo "Done" echo "Done"