blob: 31230a9ed7dde3ae96a974359986a92c105d511e [file] [log] [blame]
Mike Elliottd32d36e2018-02-12 15:54:03 -05001{{- if and .Values.persistence.enabled (not .Values.persistence.existingClaim) -}}
2kind: PersistentVolume
3apiVersion: v1
4metadata:
Mandeep Khindaa57d8dd2018-03-09 14:29:37 +00005 name: {{ include "common.fullname" . }}
Mike Elliottd32d36e2018-02-12 15:54:03 -05006 namespace: {{ include "common.namespace" . }}
7 labels:
kerenj0e93fb52018-03-06 14:46:42 +00008 app: {{ include "common.name" . }}
Mike Elliottd32d36e2018-02-12 15:54:03 -05009 chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
10 release: "{{ .Release.Name }}"
11 heritage: "{{ .Release.Service }}"
Jerome Doucerain7bd243e2018-03-02 22:14:27 -050012 name: {{ include "common.fullname" . }}
Mike Elliottd32d36e2018-02-12 15:54:03 -050013spec:
14 capacity:
15 storage: {{ .Values.persistence.size}}
16 accessModes:
17 - {{ .Values.persistence.accessMode }}
18 persistentVolumeReclaimPolicy: {{ .Values.persistence.volumeReclaimPolicy }}
19 hostPath:
20 path: {{ .Values.global.persistence.mountPath | default .Values.persistence.mountPath }}/{{ .Release.Name }}/{{ .Values.persistence.mountSubPath }}
Jerome Doucerain7bd243e2018-03-02 22:14:27 -050021{{- end -}}