From 1c706f09f8e226e581a4eaebbb5c50f5151991dd Mon Sep 17 00:00:00 2001 From: rjshrjndrn Date: Mon, 12 Jun 2023 14:14:57 +0200 Subject: [PATCH] chore(cli): Clean up toolings Signed-off-by: rjshrjndrn --- scripts/helmcharts/openreplay-cli | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/helmcharts/openreplay-cli b/scripts/helmcharts/openreplay-cli index 2a3012127..3cd47405b 100755 --- a/scripts/helmcharts/openreplay-cli +++ b/scripts/helmcharts/openreplay-cli @@ -178,6 +178,10 @@ function or_helm_upgrade() { openreplay ) [[ $UPGRADE_OR_ONLY -eq 1 ]] && chart_names=( openreplay ) + # Cleaning up toolings + [[ $CLEANUP_TOOLING -eq 1 ]] && { + helm uninstall toolings -n "$APP_NS" + } if [[ $state == "reload" ]]; then chart_names=( openreplay ) HELM_OPTIONS="${HELM_OPTIONS} --set skipMigration=true" @@ -384,6 +388,7 @@ do else log title "Applying Latest OpenReplay Patches" fi + CLEANUP_TOOLING=1 upgrade clean_tmp_dir exit 0