mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-25 10:19:06 +01:00
24 lines
726 B
YAML
24 lines
726 B
YAML
|
{{- if .Values.iceshrimp.localStorage.enabled }}
|
||
|
kind: PersistentVolumeClaim
|
||
|
apiVersion: v1
|
||
|
metadata:
|
||
|
name: {{ include "iceshrimp.datapvc" . }}
|
||
|
labels:
|
||
|
{{- include "iceshrimp.labels" . | nindent 4 }}
|
||
|
annotations:
|
||
|
{{- .Values.iceshrimp.localStorage.annotations | toYaml | nindent 4}}
|
||
|
spec:
|
||
|
accessModes:
|
||
|
{{- .Values.iceshrimp.localStorage.accessModes | toYaml | nindent 4 }}
|
||
|
volumeMode: Filesystem
|
||
|
{{- if .Values.iceshrimp.localStorage.class }}
|
||
|
storageClassName: {{ .Values.iceshrimp.localStorage.class }}
|
||
|
{{- end }}
|
||
|
{{- with .Values.iceshrimp.localStorage.volumeName }}
|
||
|
volumeName: {{ . }}
|
||
|
{{- end }}
|
||
|
resources:
|
||
|
requests:
|
||
|
storage: {{ .Values.iceshrimp.localStorage.size }}
|
||
|
{{- end }}
|