mirror of
https://gitlab.com/oecis/charts.git
synced 2024-11-15 00:28:59 +00:00
24 lines
745 B
YAML
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 }}
|