aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/multicloud/charts/multicloud-windriver/templates/pv.yaml
diff options
context:
space:
mode:
authorBorislav Glozman <Borislav.Glozman@amdocs.com>2019-12-11 14:07:20 +0000
committerGerrit Code Review <gerrit@onap.org>2019-12-11 14:07:20 +0000
commit289bd43809204ca8e4c0662b06c1c775e6333d8c (patch)
tree930dc5d3fb89e043ea82179da0139bd4df65e74c /kubernetes/multicloud/charts/multicloud-windriver/templates/pv.yaml
parent408d8af2ab72c4697a95176b50443837b5f8fc40 (diff)
parenta1f93014d079919c82738157bf539a5d7b91274a (diff)
Merge "[Multicloud] Use global storage templates for PVC"
Diffstat (limited to 'kubernetes/multicloud/charts/multicloud-windriver/templates/pv.yaml')
-rw-r--r--kubernetes/multicloud/charts/multicloud-windriver/templates/pv.yaml3
1 files changed, 3 insertions, 0 deletions
diff --git a/kubernetes/multicloud/charts/multicloud-windriver/templates/pv.yaml b/kubernetes/multicloud/charts/multicloud-windriver/templates/pv.yaml
index e2e326d34f..d7464b1a01 100644
--- a/kubernetes/multicloud/charts/multicloud-windriver/templates/pv.yaml
+++ b/kubernetes/multicloud/charts/multicloud-windriver/templates/pv.yaml
@@ -15,6 +15,7 @@
*/}}
{{- if and .Values.persistence.enabled (not .Values.persistence.existingClaim) -}}
+{{- if eq "True" (include "common.needPV" .) -}}
kind: PersistentVolume
apiVersion: v1
metadata:
@@ -32,6 +33,8 @@ spec:
accessModes:
- {{ .Values.persistence.accessMode }}
persistentVolumeReclaimPolicy: {{ .Values.persistence.volumeReclaimPolicy }}
+ storageClassName: "{{ include "common.fullname" . }}-data"
hostPath:
path: {{ default .Values.persistence.mountPath }}/{{ .Release.Name }}/{{ .Values.persistence.mountSubPath }}
{{- end -}}
+{{- end -}}