From aa3f1ebf5f2af96f144975fe05e31d46c742c2bc Mon Sep 17 00:00:00 2001 From: Tessa Walsh Date: Fri, 13 Oct 2023 20:16:12 -0400 Subject: [PATCH] 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. --- btrix | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/btrix b/btrix index 925d9160..6c02355f 100755 --- a/btrix +++ b/btrix @@ -17,11 +17,16 @@ # -wait: Wait until pods are ready # # $ ./btrix reset -# Uinstall, delete data, then bootstrap +# Uninstall, delete data, then bootstrap # Optional args: # -microk8s: Preface kubectl/helm commands with microk8s # -wait: Wait until pods are ready # +# $ ./btrix down +# Uninstall and delete data +# Optional args: +# -microk8s: Preface kubectl/helm commands with microk8s +# # $ ./btrix test # Run backend tests # @@ -170,4 +175,13 @@ if [[ $1 = "nightly" ]]; then runNightlyTests fi +# down: stop and uninstall browsertrix cloud +if [[ $1 = "down" ]]; then + if [[ $2 = "$MICROK8S" ]] ; then + resetMicrok8s + else + reset + fi +fi + echo "Done"