feat(init): Provision to override build scripts

Signed-off-by: rjshrjndrn <rjshrjndrn@gmail.com>
This commit is contained in:
rjshrjndrn 2024-03-14 12:42:00 +01:00
parent da186650a9
commit 6ab9199a62

View file

@ -58,9 +58,10 @@ spec:
- |
set -x
mkdir -p /opt/openreplay/openreplay && cd /opt/openreplay/openreplay
git clone https://github.com/openreplay/openreplay .
git clone {{ .Values.global.dbMigrationUpstreamRepoURL | default "https://github.com/openreplay/openreplay" }} .
ls /opt/openreplay/openreplay
git checkout {{ default .Chart.AppVersion .Values.dbMigrationUpstreamBranch }} || exit 10
{{ .Values.global.dbMigrationPreCommand | default "" }}
# Checking variable is empty. Shell independant method.
if [ "x$ENTERPRISE_EDITION_LICENSE" != "x" ]; then