summaryrefslogtreecommitdiffstats
path: root/kubernetes/portal/charts/portal-mariadb/templates/pv.yaml
diff options
context:
space:
mode:
authorBorislav Glozman <Borislav.Glozman@amdocs.com>2019-12-11 14:16:52 +0000
committerGerrit Code Review <gerrit@onap.org>2019-12-11 14:16:52 +0000
commit2fcb342c4e8feb654e034bde46547b13f67cb589 (patch)
tree1775b2cb4bfa85434a721bc6b949c7c6bb2b6a88 /kubernetes/portal/charts/portal-mariadb/templates/pv.yaml
parent5fec7b062689ef2e394943194875767df77ece66 (diff)
parent2a15323766f8f6d8ea32ff730672ff7acee11116 (diff)
Merge "[PORTAL] Use global storage templates for PVC"
Diffstat (limited to 'kubernetes/portal/charts/portal-mariadb/templates/pv.yaml')
-rw-r--r--kubernetes/portal/charts/portal-mariadb/templates/pv.yaml3
1 files changed, 3 insertions, 0 deletions
diff --git a/kubernetes/portal/charts/portal-mariadb/templates/pv.yaml b/kubernetes/portal/charts/portal-mariadb/templates/pv.yaml
index 252ca76599..f6119246ed 100644
--- a/kubernetes/portal/charts/portal-mariadb/templates/pv.yaml
+++ b/kubernetes/portal/charts/portal-mariadb/templates/pv.yaml
@@ -16,6 +16,7 @@
*/}}
{{- if and .Values.persistence.enabled (not .Values.persistence.existingClaim) -}}
+{{- if eq "True" (include "common.needPV" .) -}}
kind: PersistentVolume
apiVersion: v1
metadata:
@@ -33,6 +34,8 @@ spec:
accessModes:
- {{ .Values.persistence.accessMode }}
persistentVolumeReclaimPolicy: {{ .Values.persistence.volumeReclaimPolicy }}
+ storageClassName: "{{ include "common.fullname" . }}-data"
hostPath:
path: {{ .Values.global.persistence.mountPath | default .Values.persistence.mountPath }}/{{ .Release.Name }}/{{ .Values.persistence.mountSubPath }}
{{- end -}}
+{{- end -}}