Skip to content

Commit 3f6f872

Browse files
authored
Merge pull request #77 from bushvin/feature/persistentVolumeClaim
feature:allow PVCs for /data
2 parents 832b779 + bf6e5b6 commit 3f6f872

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

incubator/foundry-vtt/templates/deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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" . }}

incubator/foundry-vtt/templates/pvc.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if .Values.persistence.dataDir.enabled -}}
1+
{{- if and .Values.persistence.dataDir.enabled (not .Values.persistence.dataDir.claimName) -}}
22
kind: PersistentVolumeClaim
33
apiVersion: v1
44
metadata:

incubator/foundry-vtt/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)