-
Notifications
You must be signed in to change notification settings - Fork 147
Expand file tree
/
Copy pathpvc.yaml
More file actions
35 lines (35 loc) · 1.36 KB
/
pvc.yaml
File metadata and controls
35 lines (35 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
---
{{- if .Values.dovecot.enabled }}
{{- if and (not .Values.persistence.single_pvc) (not .Values.dovecot.persistence.existingClaim)}}
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: {{ include "mailu.dovecot.claimName" . }}
namespace: {{ include "mailu.names.namespace" . | quote }}
labels: {{- include "mailu.labels.standard" . | nindent 4 }}
app.kubernetes.io/component: dovecot
{{- if .Values.commonLabels }}
{{- include "mailu.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
{{- end }}
{{- if or .Values.dovecot.persistence.annotations .Values.commonAnnotations }}
annotations:
{{- if .Values.dovecot.persistence.annotations }}
{{- include "mailu.tplvalues.render" ( dict "value" .Values.dovecot.persistence.annotations "context" $ ) | nindent 4 }}
{{- end }}
{{- if .Values.commonAnnotations }}
{{- include "mailu.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- end }}
{{- end }}
spec:
accessModes:
{{- range .Values.dovecot.persistence.accessModes }}
- {{ . | quote }}
{{- end }}
resources:
requests:
storage: {{ .Values.dovecot.persistence.size | quote }}
{{- if .Values.dovecot.persistence.storageClass }}
storageClassName: {{ .Values.dovecot.persistence.storageClass }}
{{- end }}
{{- end }}
{{- end }}