oecis-charts/charts/tandoor/templates/pvc.yaml
Jan-Niklas Weghorn b258182487 update tandoor
2023-11-29 11:47:33 +01:00

24 lines
745 B
YAML

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