diff options
author | Borislav Glozman <Borislav.Glozman@amdocs.com> | 2019-12-11 14:17:17 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-12-11 14:17:17 +0000 |
commit | b76e563c2091b311450ada9c9e702bd44f7de734 (patch) | |
tree | e50d922bd907340f55593d135841d0772d71ca5e /kubernetes/cds/charts/cds-blueprints-processor/templates/pv.yaml | |
parent | 2fcb342c4e8feb654e034bde46547b13f67cb589 (diff) | |
parent | f8e163f50771a4681217614ad538ee13280f006b (diff) |
Merge "[CDS] Use global storage templates for PVC"
Diffstat (limited to 'kubernetes/cds/charts/cds-blueprints-processor/templates/pv.yaml')
-rwxr-xr-x | kubernetes/cds/charts/cds-blueprints-processor/templates/pv.yaml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/kubernetes/cds/charts/cds-blueprints-processor/templates/pv.yaml b/kubernetes/cds/charts/cds-blueprints-processor/templates/pv.yaml index 812108760b..a4bf83ed96 100755 --- a/kubernetes/cds/charts/cds-blueprints-processor/templates/pv.yaml +++ b/kubernetes/cds/charts/cds-blueprints-processor/templates/pv.yaml @@ -15,6 +15,7 @@ */}} {{- if and .Values.persistence.enabled (not .Values.persistence.existingClaim) -}} +{{- if eq "True" (include "common.needPV" .) -}} {{- if not .Values.persistence.storageClass -}} kind: PersistentVolume apiVersion: v1 @@ -33,7 +34,9 @@ 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 -}}
\ No newline at end of file +{{- end -}} +{{- end -}} |