diff options
author | Borislav Glozman <Borislav.Glozman@amdocs.com> | 2019-12-11 14:08:59 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-12-11 14:08:59 +0000 |
commit | 6803a3e1883d627eb72a14c4a51f6cee1aaf5656 (patch) | |
tree | 8ddd92635a3e522ce71d1df300d1d7b2b3e8f4cb /kubernetes/clamp/charts/clamp-dash-es/templates/pv.yaml | |
parent | 9d390192fce4824a1b393ab4252ba95307c10a2b (diff) | |
parent | 3a9a9788bad00f13fc17056a456ef0cbe9a5d7a4 (diff) |
Merge "[CLAMP] Use global storage templates for PVC"
Diffstat (limited to 'kubernetes/clamp/charts/clamp-dash-es/templates/pv.yaml')
-rw-r--r-- | kubernetes/clamp/charts/clamp-dash-es/templates/pv.yaml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/kubernetes/clamp/charts/clamp-dash-es/templates/pv.yaml b/kubernetes/clamp/charts/clamp-dash-es/templates/pv.yaml index fd21cdfc1f..a1408dfc07 100644 --- a/kubernetes/clamp/charts/clamp-dash-es/templates/pv.yaml +++ b/kubernetes/clamp/charts/clamp-dash-es/templates/pv.yaml @@ -14,10 +14,11 @@ # limitations under the License. */}} {{- if and .Values.persistence.enabled (not .Values.persistence.existingClaim) -}} +{{- if eq "True" (include "common.needPV" .) -}} kind: PersistentVolume apiVersion: v1 metadata: - name: {{ include "common.fullname" . }} + name: {{ include "common.fullname" . }}-data namespace: {{ include "common.namespace" . }} labels: app: {{ include "common.name" . }} @@ -30,7 +31,9 @@ spec: storage: {{ .Values.persistence.size}} accessModes: - {{ .Values.persistence.accessMode }} + storageClassName: "{{ include "common.fullname" . }}-data" persistentVolumeReclaimPolicy: {{ .Values.persistence.volumeReclaimPolicy }} hostPath: path: {{ .Values.global.persistence.mountPath | default .Values.persistence.mountPath }}/{{ .Release.Name }}/{{ .Values.persistence.mountSubPath }} {{- end -}} +{{- end -}} |