Interlegis Public Rancher Charts for Kubernetes

20 lines
572 B

{{- if eq .Values.discourse.enabled "True" }}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ include "edemocracia.fullname" . }}-discourse-assets
spec:
accessModes:
- {{ .Values.discourse.persistence.accessMode }}
resources:
requests:
storage: {{ .Values.discourse.persistence.size }}
{{- if .Values.discourse.persistence.storageClass }}
{{- if (eq "-" .Values.discourse.persistence.storageClass) }}
storageClassName: ""
{{- else }}
storageClassName: "{{ .Values.discourse.persistence.storageClass }}"
{{- end }}
{{- end }}
{{- end }}