Merge pull request #931 from rjshrjndrn/main

chore(helm): Change permission of efs in init func
This commit is contained in:
Rajesh Rajendran 2023-01-16 18:17:23 +01:00 committed by GitHub
commit 4857387e7e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -70,9 +70,13 @@ spec:
echo "Copying enterprise code"
cp -rf ee/scripts/* scripts/
fi
echo "Changing RWX to proper permission"
chown 1001:1001 /mnt/efs
volumeMounts:
- name: shared
mountPath: /opt/openreplay
- name: datadir
mountPath: /mnt/efs
containers:
- name: postgres
env:
@ -267,5 +271,16 @@ spec:
name: db-migration-script
- name: shared
emptyDir: {}
{{- if eq .Values.global.pvcRWXName "hostPath" }}
- name: datadir
hostPath:
# Ensure the file directory is created.
path: /mnt/efs
type: DirectoryOrCreate
{{- else }}
- name: datadir
persistentVolumeClaim:
claimName: "{{ .Values.global.pvcRWXName }}"
{{- end }}
restartPolicy: Never
{{- end}}