From cef95005f2d635cac96394206a0fa08e0da45c3d Mon Sep 17 00:00:00 2001 From: Kenny Woodson Date: Wed, 21 Jun 2017 15:08:09 -0400 Subject: Fix for dynamic pvs when using storageclasses. --- roles/openshift_metrics/templates/pvc.j2 | 3 +++ 1 file changed, 3 insertions(+) (limited to 'roles/openshift_metrics/templates') diff --git a/roles/openshift_metrics/templates/pvc.j2 b/roles/openshift_metrics/templates/pvc.j2 index 0b801b33f..b4e6a1503 100644 --- a/roles/openshift_metrics/templates/pvc.j2 +++ b/roles/openshift_metrics/templates/pvc.j2 @@ -32,3 +32,6 @@ spec: resources: requests: storage: {{size}} +{% if storage_class_name is defined %} + storageClassName: {{ storage_class_name }} +{% endif %} -- cgit v1.2.3