1 #{{ if .Values.persistence.enabled }}
3 {{ range $i, $e := until (atoi (quote $root.Values.replicaCount) | default 3) }}
8 name: {{ $root.Release.Name }}-{{ $root.Values.service.name }}-{{ $i }}
9 namespace: {{ $root.Release.Namespace }}
11 type: {{ $root.Values.persistence.storageType }}
12 app: {{ $root.Values.service.name }}
13 chart: {{ $root.Chart.Name }}-{{ $root.Chart.Version | replace "+" "_" }}
14 release: {{ $root.Release.Name }}
15 heritage: {{ $root.Release.Service }}
18 storage: {{ $root.Values.persistence.size }}
20 - {{ $root.Values.persistence.accessMode }}
22 path: {{ $root.Values.persistence.mountPath }}/{{ $root.Release.Name }}/{{ $root.Values.persistence.mountSubPath }}-{{ $i }}
23 persistentVolumeReclaimPolicy: {{ $root.Values.persistence.volumeReclaimPolicy }}