summaryrefslogtreecommitdiffstats
path: root/kubernetes/common/etcd/templates/pv.yaml
diff options
context:
space:
mode:
authorKiran Kamineni <kiran.k.kamineni@intel.com>2019-05-20 17:19:40 -0700
committerKiran Kamineni <kiran.k.kamineni@intel.com>2019-05-20 17:19:43 -0700
commit56c00a827fea30b5cc71a6a70639ceb7f03ad895 (patch)
tree1f7662b6026678c5981984bc1d83a27b2955e2f9 /kubernetes/common/etcd/templates/pv.yaml
parent8fca33bbae2f9a3b8356ec48fd59345dfd3dad21 (diff)
Change chart to fullname instead of servicename
The chart uses servicename in statefulset.yaml. This should be fullname instead. Issue-ID: MULTICLOUD-636 Change-Id: I0e523a5c0e2e2c432f3a159fcb8c9ddcd2240e68 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
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 }}