blob: a2949fef3664ad47bacacdd485bec0b631819685 [file] [log] [blame]
Mike Elliott13fed112018-02-28 08:33:33 -05001{{- if and .Values.persistence.enabled (not .Values.persistence.existingClaim) -}}
2kind: PersistentVolumeClaim
3apiVersion: v1
4metadata:
5 name: {{ include "common.fullname" . }}-data
6 namespace: {{ include "common.namespace" . }}
7 labels:
8 app: {{ include "common.fullname" . }}
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 accessModes:
18 - {{ .Values.persistence.accessMode }}
19 resources:
20 requests:
21 storage: {{ .Values.persistence.size }}
22 storageClassName: "{{ include "common.fullname" . }}-data"
23{{- end -}}