summaryrefslogtreecommitdiffstats
path: root/kubernetes/common/etcd/templates/pv.yaml
diff options
context:
space:
mode:
authorBorislav Glozman <Borislav.Glozman@amdocs.com>2019-05-21 16:38:11 +0000
committerGerrit Code Review <gerrit@onap.org>2019-05-21 16:38:11 +0000
commit5f17b51bae1c91155ff7f1c11281d4706bc07b8f (patch)
treedad0dbc421d04e9b6f9356ff238cc113c327aea9 /kubernetes/common/etcd/templates/pv.yaml
parent8f62ea20c6d74987a95f08c1568858cfaa92eb5f (diff)
parent56c00a827fea30b5cc71a6a70639ceb7f03ad895 (diff)
Merge "Change chart to fullname instead of servicename"
Diffstat (limited to 'kubernetes/common/etcd/templates/pv.yaml')
-rw-r--r--kubernetes/common/etcd/templates/pv.yaml7
1 files changed, 4 insertions, 3 deletions
diff --git a/kubernetes/common/etcd/templates/pv.yaml b/kubernetes/common/etcd/templates/pv.yaml
index eeaa64598d..65993e5f2a 100644
--- a/kubernetes/common/etcd/templates/pv.yaml
+++ b/kubernetes/common/etcd/templates/pv.yaml
@@ -19,19 +19,20 @@
apiVersion: v1
kind: PersistentVolume
metadata:
- name: {{ $root.Release.Name }}-{{ $root.Values.service.name }}-{{ $i }}
+ name: {{ include "common.fullname" $root }}-data-{{ $i }}
namespace: {{ $root.Release.Namespace }}
labels:
type: {{ $root.Values.persistence.storageType }}
- app: {{ $root.Values.service.name }}
+ app: {{ include "common.fullname" $root }}
chart: {{ $root.Chart.Name }}-{{ $root.Chart.Version | replace "+" "_" }}
release: {{ $root.Release.Name }}
heritage: {{ $root.Release.Service }}
spec:
capacity:
- storage: {{ $root.Values.persistence.size }}
+ storage: {{ $root.Values.persistence.storage }}
accessModes:
- {{ $root.Values.persistence.accessMode }}
+ storageClassName: "{{ include "common.fullname" $root }}-data"
hostPath:
path: {{ $root.Values.persistence.mountPath }}/{{ $root.Release.Name }}/{{ $root.Values.persistence.mountSubPath }}-{{ $i }}
persistentVolumeReclaimPolicy: {{ $root.Values.persistence.volumeReclaimPolicy }}