diff --git a/scripts/helmcharts/openreplay/templates/job.yaml b/scripts/helmcharts/openreplay/templates/job.yaml index 9366dca41..7321a0959 100644 --- a/scripts/helmcharts/openreplay/templates/job.yaml +++ b/scripts/helmcharts/openreplay/templates/job.yaml @@ -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