diff options
author | ewolinetz <ewolinet@redhat.com> | 2017-05-24 11:10:00 -0500 |
---|---|---|
committer | ewolinetz <ewolinet@redhat.com> | 2017-05-26 17:21:50 -0500 |
commit | 44227c5bf81d6e95882ed96179eebc5d7900d423 (patch) | |
tree | 7dd7cea85b6defbc82b773fc09f38ced9a76237e /roles/openshift_persistent_volumes | |
parent | 8c57b7f62f6351d03c1e28d7cff88279fc16f88a (diff) | |
download | openshift-44227c5bf81d6e95882ed96179eebc5d7900d423.tar.gz openshift-44227c5bf81d6e95882ed96179eebc5d7900d423.tar.bz2 openshift-44227c5bf81d6e95882ed96179eebc5d7900d423.tar.xz openshift-44227c5bf81d6e95882ed96179eebc5d7900d423.zip |
Allowing openshift_metrics to specify PV selectors and allow way to define selectors when creating pv
Diffstat (limited to 'roles/openshift_persistent_volumes')
-rw-r--r-- | roles/openshift_persistent_volumes/templates/persistent-volume.yml.j2 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/roles/openshift_persistent_volumes/templates/persistent-volume.yml.j2 b/roles/openshift_persistent_volumes/templates/persistent-volume.yml.j2 index 877e88002..9c5103597 100644 --- a/roles/openshift_persistent_volumes/templates/persistent-volume.yml.j2 +++ b/roles/openshift_persistent_volumes/templates/persistent-volume.yml.j2 @@ -7,6 +7,12 @@ items: kind: PersistentVolume metadata: name: "{{ volume.name }}" +{% if volume.labels is defined and volume.labels is mapping %} + labels: +{% for key,value in volume.labels.iteritems() %} + {{ key }}: {{ value }} +{% endfor %} +{% endif %} spec: capacity: storage: "{{ volume.capacity }}" |