diff options
author | OpenShift Bot <eparis+openshiftbot@redhat.com> | 2017-06-13 16:02:18 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-13 16:02:18 -0400 |
commit | 3fed1873230d9e84c07824b7de98ae7edfc481ba (patch) | |
tree | e97d2dae693b22f30976e5804bdd02cc591cc84b /roles/openshift_metrics/templates | |
parent | 75a46c184bda80158c085bcd38b40fd4d02aabd0 (diff) | |
parent | ee59257a018f081efa1f121cba40f857e07e9ef5 (diff) | |
download | openshift-3fed1873230d9e84c07824b7de98ae7edfc481ba.tar.gz openshift-3fed1873230d9e84c07824b7de98ae7edfc481ba.tar.bz2 openshift-3fed1873230d9e84c07824b7de98ae7edfc481ba.tar.xz openshift-3fed1873230d9e84c07824b7de98ae7edfc481ba.zip |
Merge pull request #4302 from ewolinetz/pv_node_selectors
Merged by openshift-bot
Diffstat (limited to 'roles/openshift_metrics/templates')
-rw-r--r-- | roles/openshift_metrics/templates/pvc.j2 | 7 |
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 }} |