trashposs/chart/templates/pvc.yaml

24 lines
726 B
YAML
Raw Normal View History

2024-04-06 23:55:59 +02:00
{{- if .Values.trashposs.localStorage.enabled }}
2024-01-14 20:36:37 +01:00
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
2024-04-06 23:55:59 +02:00
name: {{ include "trashposs.datapvc" . }}
2024-01-14 20:36:37 +01:00
labels:
2024-04-06 23:55:59 +02:00
{{- include "trashposs.labels" . | nindent 4 }}
2024-01-14 20:36:37 +01:00
annotations:
2024-04-06 23:55:59 +02:00
{{- .Values.trashposs.localStorage.annotations | toYaml | nindent 4}}
2024-01-14 20:36:37 +01:00
spec:
accessModes:
2024-04-06 23:55:59 +02:00
{{- .Values.trashposs.localStorage.accessModes | toYaml | nindent 4 }}
2024-01-14 20:36:37 +01:00
volumeMode: Filesystem
2024-04-06 23:55:59 +02:00
{{- if .Values.trashposs.localStorage.class }}
storageClassName: {{ .Values.trashposs.localStorage.class }}
2024-01-14 20:36:37 +01:00
{{- end }}
2024-04-06 23:55:59 +02:00
{{- with .Values.trashposs.localStorage.volumeName }}
2024-01-14 20:36:37 +01:00
volumeName: {{ . }}
{{- end }}
resources:
requests:
2024-04-06 23:55:59 +02:00
storage: {{ .Values.trashposs.localStorage.size }}
2024-01-14 20:36:37 +01:00
{{- end }}