blob: c046f4604af44dfbb8556a8e4784c4ae95a662d9 [file] [log] [blame]
Geora Barskya3f067c2018-07-19 16:46:37 -04001{{- if and .Values.persistence.enabled (not .Values.persistence.existingClaim) -}}
2kind: PersistentVolumeClaim
3apiVersion: v1
4metadata:
5 name: {{ include "common.fullname" . }}
6 namespace: {{ include "common.namespace" . }}
7 labels:
8 app: {{ include "common.name" . }}
9 chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
10 release: "{{ .Release.Name }}"
11 heritage: "{{ .Release.Service }}"
12{{- if .Values.persistence.annotations }}
13 annotations:
14{{ toYaml .Values.persistence.annotations | indent 4 }}
15{{- end }}
16spec:
17 selector:
18 matchLabels:
19 name: {{ include "common.fullname" . }}
20 accessModes:
21 - {{ .Values.persistence.accessMode }}
22 resources:
23 requests:
24 storage: {{ .Values.persistence.size }}
25{{- end -}}