File tree Expand file tree Collapse file tree 3 files changed +6
-1
lines changed
Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -233,6 +233,9 @@ spec:
233233 hostPath :
234234 path : {{ .Values.persistence.bind.hostpath }}
235235 type : Directory
236+ {{- else if and (.Values.persistence.dataDir.enabled) (.Values.persistence.dataDir.claimName) }}
237+ persistentVolumeClaim :
238+ claimName : {{ .Values.persistence.dataDir.claimName }}
236239 {{- else if .Values.persistence.dataDir.enabled }}
237240 persistentVolumeClaim :
238241 claimName : {{ template "foundry-vtt.fullname" . }}
Original file line number Diff line number Diff line change 1- {{- if .Values.persistence.dataDir.enabled -}}
1+ {{- if and .Values.persistence.dataDir.enabled (not .Values.persistence.dataDir.claimName) -}}
22kind : PersistentVolumeClaim
33apiVersion : v1
44metadata :
Original file line number Diff line number Diff line change @@ -155,6 +155,8 @@ persistence:
155155 # Set this to false if you don't care to persist state between restarts.
156156 enabled : false
157157 size : 5Gi
158+ # # Specify the name of an existing Persistent Volume Claim
159+ claimName : " "
158160
159161 shared :
160162 # Enable tha shared mount for a NFS file system or a shared bind point with for
You can’t perform that action at this time.
0 commit comments