chore(helm): override the pvc name
This commit is contained in:
parent
7c2a71c276
commit
d8f3673bbf
2 changed files with 10 additions and 12 deletions
|
|
@ -32,17 +32,17 @@ spec:
|
|||
- mountPath: /mnt/efs
|
||||
name: datadir
|
||||
restartPolicy: Never
|
||||
{{- if eq .Values.pvc.name "hostPath" }}
|
||||
{{- if eq .Values.efsCleaner.pvc.name "hostPath" }}
|
||||
volumes:
|
||||
- name: datadir
|
||||
hostPath:
|
||||
# Ensure the file directory is created.
|
||||
path: {{ .Values.pvc.hostMountPath }}
|
||||
path: {{ .Values.efsCleaner.pvc.hostMountPath }}
|
||||
type: DirectoryOrCreate
|
||||
{{- else }}
|
||||
volumes:
|
||||
- name: datadir
|
||||
persistentVolumeClaim:
|
||||
claimName: {{ .Values.pvc.name }}
|
||||
claimName: {{ .Values.efsCleaner.pvc.name }}
|
||||
{{- end }}
|
||||
|
||||
|
|
|
|||
|
|
@ -9,8 +9,13 @@ efsCleaner:
|
|||
repository: "{{ .Values.global.openReplayContainerRegistry }}/alpine"
|
||||
pullPolicy: Always
|
||||
tag: 3.16.1
|
||||
# Overrides the image tag whose default is the chart appVersion.
|
||||
tag: ""
|
||||
pvc:
|
||||
# This can be either persistentVolumeClaim or hostPath.
|
||||
# In case of pvc, you'll have to provide the pvc name.
|
||||
# For example
|
||||
# name: openreplay-efs
|
||||
name: hostPath
|
||||
hostMountPath: /openreplay/storage/nfs
|
||||
|
||||
telemetry:
|
||||
# https://crontab.guru/#5_12_*_*_*
|
||||
|
|
@ -78,10 +83,3 @@ fullnameOverride: "utilities-openreplay"
|
|||
# refer: https://crontab.guru/#5_3_*_*_1
|
||||
cron: "5 3 * * 1"
|
||||
|
||||
pvc:
|
||||
# This can be either persistentVolumeClaim or hostPath.
|
||||
# In case of pvc, you'll have to provide the pvc name.
|
||||
# For example
|
||||
# name: openreplay-efs
|
||||
name: hostPath
|
||||
hostMountPath: /openreplay/storage/nfs
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue