trashposs/chart/templates/pvc.yaml
2024-04-06 23:55:59 +02:00

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 }}