oecis-charts/charts/tandoor/templates/pvc.yaml
2023-08-27 15:38:50 +02:00

48 lines
1.5 KiB
YAML

{{- if not .Values.persistence.staticfiles.existingClaim }}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ .Values.persistence.staticfiles.name }}
namespace: {{ include "tandoor.namespace" . }}
annotations:
{{- with .Values.persistence.staticfiles.annotations }}
{{ toYaml . | nindent 4 }}
{{- end }}
helm.sh/resource-policy: keep
labels:
{{- include "tandoor.labels" . | nindent 4 }}
spec:
{{- if .Values.persistence.staticfiles.storageClass }}
storageClassName: {{ .Values.persistence.staticfiles.storageClass | quote }}
{{- end }}
accessModes:
- {{ .Values.persistence.staticfiles.accessMode }}
resources:
requests:
storage: {{ .Values.persistence.staticfiles.size | quote }}
{{- end }}
---
{{- if not .Values.persistence.mediafiles.existingClaim }}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ .Values.persistence.mediafiles.name }}
namespace: {{ include "tandoor.namespace" . }}
annotations:
{{- with .Values.persistence.mediafiles.annotations }}
{{ toYaml . | nindent 4 }}
{{- end }}
helm.sh/resource-policy: keep
labels:
{{- include "tandoor.labels" . | nindent 4 }}
spec:
{{- if .Values.persistence.mediafiles.storageClass }}
storageClassName: {{ .Values.persistence.mediafiles.storageClass | quote }}
{{- end }}
accessModes:
- {{ .Values.persistence.mediafiles.accessMode }}
resources:
requests:
storage: {{ .Values.persistence.mediafiles.size | quote }}
{{- end }}