From 5ad1dd58f14e8fd0a2fe1253eeb13dc208c28058 Mon Sep 17 00:00:00 2001 From: rjshrjndrn Date: Tue, 6 Jun 2023 11:35:48 +0200 Subject: [PATCH] chore(helm): Skip migration for reload Signed-off-by: rjshrjndrn --- scripts/helmcharts/openreplay-cli | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/helmcharts/openreplay-cli b/scripts/helmcharts/openreplay-cli index 197c1b48f..2a3012127 100755 --- a/scripts/helmcharts/openreplay-cli +++ b/scripts/helmcharts/openreplay-cli @@ -178,7 +178,10 @@ function or_helm_upgrade() { openreplay ) [[ $UPGRADE_OR_ONLY -eq 1 ]] && chart_names=( openreplay ) - [[ $state == "reload" ]] && chart_names=( openreplay ) + if [[ $state == "reload" ]]; then + chart_names=( openreplay ) + HELM_OPTIONS="${HELM_OPTIONS} --set skipMigration=true" + fi for chart in "${chart_names[@]}"; do [[ -z $OR_VERSION ]] || HELM_OPTIONS="${HELM_OPTIONS} --set dbMigrationUpstreamBranch=${OR_VERSION}" log info helm upgrade --install "$chart" ./"$chart" -n "$APP_NS" --wait -f ./vars.yaml --atomic --debug $HELM_OPTIONS 2>&1 | tee -a "${log_file}"