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