From 6ab9199a62dc60f2a79921aef92c2ab37eeff8b5 Mon Sep 17 00:00:00 2001 From: rjshrjndrn Date: Thu, 14 Mar 2024 12:42:00 +0100 Subject: [PATCH] feat(init): Provision to override build scripts Signed-off-by: rjshrjndrn --- scripts/helmcharts/openreplay/templates/job.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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