summaryrefslogtreecommitdiffstats
path: root/kubernetes/sdc/charts/sdc-es/templates/pvc.yaml
diff options
context:
space:
mode:
authorBorislav Glozman <Borislav.Glozman@amdocs.com>2019-12-11 14:03:55 +0000
committerGerrit Code Review <gerrit@onap.org>2019-12-11 14:03:55 +0000
commit16b32ddfe9237ffeed3dc9f1422978ca65995e4b (patch)
treed3436df39725395f7529d90c7f19548abb75a91c /kubernetes/sdc/charts/sdc-es/templates/pvc.yaml
parent1f20e128c5ffe2d7996a33bb2a3d61fa923493cd (diff)
parent9c131127f3eb1fb0600a8c5835055cd65ce7be4e (diff)
Merge "[SDC] Use global storage templates for PVC"
Diffstat (limited to 'kubernetes/sdc/charts/sdc-es/templates/pvc.yaml')
-rw-r--r--kubernetes/sdc/charts/sdc-es/templates/pvc.yaml11
1 files changed, 1 insertions, 10 deletions
diff --git a/kubernetes/sdc/charts/sdc-es/templates/pvc.yaml b/kubernetes/sdc/charts/sdc-es/templates/pvc.yaml
index e1f01b67fe..5251283ddf 100644
--- a/kubernetes/sdc/charts/sdc-es/templates/pvc.yaml
+++ b/kubernetes/sdc/charts/sdc-es/templates/pvc.yaml
@@ -31,19 +31,10 @@ metadata:
{{ toYaml .Values.persistence.annotations | indent 4 }}
{{- end }}
spec:
- selector:
- matchLabels:
- name: {{ include "common.fullname" . }}
accessModes:
- {{ .Values.persistence.accessMode }}
+ storageClassName: {{ include "common.storageClass" . }}
resources:
requests:
storage: {{ .Values.persistence.size }}
-{{- if .Values.persistence.storageClass }}
-{{- if (eq "-" .Values.persistence.storageClass) }}
- storageClassName: ""
-{{- else }}
- storageClassName: "{{ .Values.persistence.storageClass }}"
-{{- end }}
-{{- end }}
{{- end -}} \ No newline at end of file