25 lines
693 B
YAML
25 lines
693 B
YAML
{{- if .Values.persistence.enabled }}
|
|
{{- if not .Values.persistence.existingClaim -}}
|
|
kind: PersistentVolumeClaim
|
|
apiVersion: v1
|
|
metadata:
|
|
name: {{ template "opendkim.fullname" . }}
|
|
labels:
|
|
app: {{ template "opendkim.fullname" . }}
|
|
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
|
|
release: "{{ .Release.Name }}"
|
|
heritage: "{{ .Release.Service }}"
|
|
spec:
|
|
accessModes:
|
|
- {{ .Values.persistence.accessMode | quote }}
|
|
{{- if .Values.persistence.storageClass }}
|
|
storageClassName: "{{ .Values.persistence.storageClass }}"
|
|
{{- else }}
|
|
storageClassName: ""
|
|
{{- end }}
|
|
resources:
|
|
requests:
|
|
storage: {{ .Values.persistence.size | quote }}
|
|
{{- end -}}
|
|
{{- end }}
|