mirror of
https://gitlab.com/oecis/charts.git
synced 2024-11-19 13:19:03 +00:00
48 lines
1.5 KiB
YAML
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 }}
|