summaryrefslogtreecommitdiffstats
path: root/roles/openshift_metrics/templates/pvc.j2
diff options
context:
space:
mode:
Diffstat (limited to 'roles/openshift_metrics/templates/pvc.j2')
-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 %}