2023-12-05 19:13:45 +00:00
|
|
|
{{- if .Values.persistence.cache.enabled -}}
|
|
|
|
{{- $fullName := include "ntfy.fullname" . -}}
|
|
|
|
kind: PersistentVolumeClaim
|
|
|
|
apiVersion: v1
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
{{- include "ntfy.labels" . | nindent 4 }}
|
|
|
|
name: {{ $fullName }}-cache
|
|
|
|
spec:
|
|
|
|
accessModes:
|
|
|
|
- ReadWriteOnce
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
storage: {{ .Values.persistence.cache.size }}
|
2024-02-29 15:42:38 +00:00
|
|
|
storageClassName: {{ .Values.persistence.cache.storageClass }}
|
2023-12-05 19:13:45 +00:00
|
|
|
{{ end }}
|
|
|
|
---
|
|
|
|
{{- if .Values.persistence.data.enabled -}}
|
|
|
|
{{- $fullName := include "ntfy.fullname" . -}}
|
|
|
|
kind: PersistentVolumeClaim
|
|
|
|
apiVersion: v1
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
{{- include "ntfy.labels" . | nindent 4 }}
|
|
|
|
name: {{ $fullName }}-data
|
|
|
|
spec:
|
|
|
|
accessModes:
|
|
|
|
- ReadWriteOnce
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
storage: {{ .Values.persistence.data.size }}
|
2024-02-29 15:42:38 +00:00
|
|
|
storageClassName: {{ .Values.persistence.cache.storageClass }}
|
2023-12-05 19:13:45 +00:00
|
|
|
{{ end }}
|