summaryrefslogtreecommitdiffstats
path: root/roles/openshift_metrics/templates
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2017-06-13 21:46:15 -0400
committerGitHub <noreply@github.com>2017-06-13 21:46:15 -0400
commit85a3806b57858b35b793b8391b67f88bfeec9e10 (patch)
tree01322684429cf6d9807582b0fb0d13dafb3107b4 /roles/openshift_metrics/templates
parent4dcd01577bc6f92ef6f1f294c4374a14e0895b96 (diff)
parent1720a5209dab342b84afd625cf609fe8fddf1f83 (diff)
downloadopenshift-85a3806b57858b35b793b8391b67f88bfeec9e10.tar.gz
openshift-85a3806b57858b35b793b8391b67f88bfeec9e10.tar.bz2
openshift-85a3806b57858b35b793b8391b67f88bfeec9e10.tar.xz
openshift-85a3806b57858b35b793b8391b67f88bfeec9e10.zip
Merge branch 'master' into Upgrade_Calico_Version_to_2.2.1
Diffstat (limited to 'roles/openshift_metrics/templates')
-rw-r--r--roles/openshift_metrics/templates/pvc.j27
1 files changed, 7 insertions, 0 deletions
diff --git a/roles/openshift_metrics/templates/pvc.j2 b/roles/openshift_metrics/templates/pvc.j2
index c2e56ba21..0b801b33f 100644
--- a/roles/openshift_metrics/templates/pvc.j2
+++ b/roles/openshift_metrics/templates/pvc.j2
@@ -18,6 +18,13 @@ metadata:
{% endfor %}
{% endif %}
spec:
+{% if pv_selector is defined and pv_selector is mapping %}
+ selector:
+ matchLabels:
+{% for key,value in pv_selector.iteritems() %}
+ {{key}}: {{value}}
+{% endfor %}
+{% endif %}
accessModes:
{% for mode in access_modes %}
- {{ mode }}