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