summaryrefslogtreecommitdiffstats
path: root/roles/openshift_metrics/templates
diff options
context:
space:
mode:
authorKenny Woodson <kwoodson@redhat.com>2017-06-21 15:08:09 -0400
committerKenny Woodson <kwoodson@redhat.com>2017-06-21 15:23:52 -0400
commitcef95005f2d635cac96394206a0fa08e0da45c3d (patch)
tree18700d34dc44a5a57c02a7698d7297526a163593 /roles/openshift_metrics/templates
parentde93b27df139b19f1949065ae4118903971551d8 (diff)
downloadopenshift-cef95005f2d635cac96394206a0fa08e0da45c3d.tar.gz
openshift-cef95005f2d635cac96394206a0fa08e0da45c3d.tar.bz2
openshift-cef95005f2d635cac96394206a0fa08e0da45c3d.tar.xz
openshift-cef95005f2d635cac96394206a0fa08e0da45c3d.zip
Fix for dynamic pvs when using storageclasses.
Diffstat (limited to 'roles/openshift_metrics/templates')
-rw-r--r--roles/openshift_metrics/templates/pvc.j23
1 files changed, 3 insertions, 0 deletions
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 %}