chore(helm): override branch name for db migration

Signed-off-by: rjshrjndrn <rjshrjndrn@gmail.com>
This commit is contained in:
rjshrjndrn 2022-06-28 15:06:26 +02:00
parent 4d22156b6a
commit 198ea005d4

View file

@ -36,7 +36,10 @@ spec:
- -c
args:
- |
git clone https://github.com/openreplay/openreplay /opt/openreplay/openreplay -b {{ .Chart.AppVersion }}
mkdir -p /opt/openreplay/openreplay && cd "$_"
git clone https://github.com/openreplay/openreplay .
git checkout {{ default .Chart.AppVersion .Values.dbMigrationUpstreamBranch }}
# Checking variable is empty. Shell independant method.
if [ "x$ENTERPRISE_EDITION_LICENSE" != "x" ]; then
exit_count=0
@ -61,7 +64,6 @@ spec:
fi
echo "Copying enterprise code"
cd /opt/openreplay/openreplay
cp -rf ee/scripts/* scripts/
fi
volumeMounts: