mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
* Add bookstack Signed-off-by: Bart Verwilst <bart@verwilst.be> * add home to Chart.yaml, remove whitespaces Signed-off-by: Bart Verwilst <bart@verwilst.be> * do not allow privilege escalation Signed-off-by: Bart Verwilst <bart@verwilst.be> * fix api version for deployment Signed-off-by: Bart Verwilst <bart@verwilst.be>
25 lines
806 B
YAML
25 lines
806 B
YAML
{{- if and .Values.persistence.uploads.enabled (not .Values.persistence.uploads.existingClaim) -}}
|
|
kind: PersistentVolumeClaim
|
|
apiVersion: v1
|
|
metadata:
|
|
name: {{ template "bookstack.fullname" . }}-uploads
|
|
labels:
|
|
app: {{ template "bookstack.fullname" . }}
|
|
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
|
|
release: "{{ .Release.Name }}"
|
|
heritage: "{{ .Release.Service }}"
|
|
spec:
|
|
accessModes:
|
|
- {{ .Values.persistence.uploads.accessMode | quote }}
|
|
resources:
|
|
requests:
|
|
storage: {{ .Values.persistence.uploads.size | quote }}
|
|
{{- if .Values.persistence.uploads.storageClass }}
|
|
{{- if (eq "-" .Values.persistence.uploads.storageClass) }}
|
|
storageClassName: ""
|
|
{{- else }}
|
|
storageClassName: "{{ .Values.persistence.uploads.storageClass }}"
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end }}
|