Interlegis Public Rancher Charts for Kubernetes
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
{{- if .Values.persistence.enabled }}
|
|
|
|
apiVersion: v1
|
|
|
|
kind: PersistentVolumeClaim
|
|
|
|
metadata:
|
|
|
|
name: {{ include "sapl.fullname" . }}-media
|
|
|
|
labels:
|
|
|
|
{{- include "sapl.labels" . | nindent 4 }}
|
|
|
|
spec:
|
|
|
|
accessModes:
|
|
|
|
- {{ .Values.persistence.accessMode }}
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
storage: {{ .Values.persistence.size }}
|
|
|
|
{{- if .Values.persistence.storageClass }}
|
|
|
|
{{- if (eq "-" .Values.persistence.storageClass) }}
|
|
|
|
storageClassName: ""
|
|
|
|
{{- else }}
|
|
|
|
storageClassName: "{{ .Values.persistence.storageClass }}"
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|