diff options
author | 2019-12-11 14:08:34 +0000 | |
---|---|---|
committer | 2019-12-11 14:08:34 +0000 | |
commit | 9d390192fce4824a1b393ab4252ba95307c10a2b (patch) | |
tree | f0c34dc8362f29d6b133c397b608890ba486d17d /kubernetes/modeling/charts/modeling-etsicatalog/templates/pv.yaml | |
parent | 37c368332d64933817d24a0521a2a109160b446b (diff) | |
parent | 09b40ae930ae269f8c8523512f272ce985238c20 (diff) |
Merge "[Modeling] Use global storage templates for PVC"
Diffstat (limited to 'kubernetes/modeling/charts/modeling-etsicatalog/templates/pv.yaml')
-rw-r--r-- | kubernetes/modeling/charts/modeling-etsicatalog/templates/pv.yaml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/kubernetes/modeling/charts/modeling-etsicatalog/templates/pv.yaml b/kubernetes/modeling/charts/modeling-etsicatalog/templates/pv.yaml index d1e1b04121..68696fbccd 100644 --- a/kubernetes/modeling/charts/modeling-etsicatalog/templates/pv.yaml +++ b/kubernetes/modeling/charts/modeling-etsicatalog/templates/pv.yaml @@ -14,6 +14,7 @@ # limitations under the License. */}} {{- if and .Values.persistence.enabled (not .Values.persistence.existingClaim) -}} +{{- if eq "True" (include "common.needPV" .) -}} kind: PersistentVolume apiVersion: v1 metadata: @@ -31,6 +32,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 -}} |