summaryrefslogtreecommitdiffstats
path: root/kubernetes/vfc/charts/vfc-catalog/templates/pv.yaml
diff options
context:
space:
mode:
authorBorislav Glozman <Borislav.Glozman@amdocs.com>2019-12-11 14:06:43 +0000
committerGerrit Code Review <gerrit@onap.org>2019-12-11 14:06:43 +0000
commit408d8af2ab72c4697a95176b50443837b5f8fc40 (patch)
treed8f2f1c38d19dd7a558cb9ebe104e2f55451ff00 /kubernetes/vfc/charts/vfc-catalog/templates/pv.yaml
parentd7c871ee5e465c11f36974cfb668844882d139d2 (diff)
parentd90634b74b83fe5ab71876cc866b2793de601287 (diff)
Merge "[VFC] Use global storage templates for PVC"
Diffstat (limited to 'kubernetes/vfc/charts/vfc-catalog/templates/pv.yaml')
-rw-r--r--kubernetes/vfc/charts/vfc-catalog/templates/pv.yaml5
1 files changed, 4 insertions, 1 deletions
diff --git a/kubernetes/vfc/charts/vfc-catalog/templates/pv.yaml b/kubernetes/vfc/charts/vfc-catalog/templates/pv.yaml
index d1e1b04121..68696fbccd 100644
--- a/kubernetes/vfc/charts/vfc-catalog/templates/pv.yaml
+++ b/kubernetes/vfc/charts/vfc-catalog/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 -}}