diff options
author | Borislav Glozman <Borislav.Glozman@amdocs.com> | 2019-12-11 14:03:55 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-12-11 14:03:55 +0000 |
commit | 16b32ddfe9237ffeed3dc9f1422978ca65995e4b (patch) | |
tree | d3436df39725395f7529d90c7f19548abb75a91c /kubernetes/sdc/charts/sdc-es/templates/pv.yaml | |
parent | 1f20e128c5ffe2d7996a33bb2a3d61fa923493cd (diff) | |
parent | 9c131127f3eb1fb0600a8c5835055cd65ce7be4e (diff) |
Merge "[SDC] Use global storage templates for PVC"
Diffstat (limited to 'kubernetes/sdc/charts/sdc-es/templates/pv.yaml')
-rw-r--r-- | kubernetes/sdc/charts/sdc-es/templates/pv.yaml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/kubernetes/sdc/charts/sdc-es/templates/pv.yaml b/kubernetes/sdc/charts/sdc-es/templates/pv.yaml index 618b23a584..8edf342f3a 100644 --- a/kubernetes/sdc/charts/sdc-es/templates/pv.yaml +++ b/kubernetes/sdc/charts/sdc-es/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 -}}
\ No newline at end of file +{{- end -}} +{{- end -}} |