chore(helm): add enterprise copy support

Signed-off-by: Rajesh Rajendran <rjshrjndrn@gmail.com>
This commit is contained in:
Rajesh Rajendran 2021-12-12 20:43:33 +05:30
parent c2f8398a85
commit 8ac4c7bdc4
No known key found for this signature in database
GPG key ID: F9F6FCAB8BACB638

View file

@ -27,14 +27,19 @@ spec:
initContainers:
- name: git
image: alpine/git
env:
- name: ENTERPRISE_EDITION_LICENSE
value: "{{ .Values.global.enterprise_edition_license }}"
command:
- git
- /bin/sh
- -c
args:
- clone
- https://github.com/openreplay/openreplay
- -b
- {{ .Chart.AppVersion }}
- /opt/openreplay/openreplay
- |
git clone https://github.com/openreplay/openreplay -b {{ .Chart.AppVersion }} /opt/openreplay/openreplay
if [ ENTERPRISE_EDITION_LICENSE != "" ]; then
cd /opt/openreplay/openreplay
cp -rf ee/scripts/* scripts/
fi
volumeMounts:
- name: shared
mountPath: /opt/openreplay