oecis-charts/charts/tandoor/templates/pvc.yaml

24 lines
745 B
YAML
Raw Normal View History

2023-08-27 13:38:38 +00:00
{{- 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 }}