From 6f18c1a30193a805a1562a8df4453779ab04b741 Mon Sep 17 00:00:00 2001 From: rjshrjndrn Date: Wed, 13 Nov 2024 17:47:14 +0100 Subject: [PATCH] chore(helm): precedence to the autogenereated prev version. Signed-off-by: rjshrjndrn --- scripts/helmcharts/openreplay/files/dbops.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/helmcharts/openreplay/files/dbops.sh b/scripts/helmcharts/openreplay/files/dbops.sh index 3217f0262..2c3b243b2 100644 --- a/scripts/helmcharts/openreplay/files/dbops.sh +++ b/scripts/helmcharts/openreplay/files/dbops.sh @@ -97,6 +97,15 @@ function init() { esac } +# Check if the openreplay version is set. +# This will take precedence over the .Values.fromVersion variable +# Because its created by installation programatically. +if [[ -n $OPENREPLAY_VERSION ]]; then + is_migrate=true + PREVIOUS_APP_VERSION=$OPENREPLAY_VERSION + echo "$OPENREPLAY_VERSION set" +fi + if [[ $FORCE_MIGRATION == "true" ]]; then is_migrate=true fi