summaryrefslogtreecommitdiffstats
path: root/roles/openshift_persistent_volumes
diff options
context:
space:
mode:
authorOpenShift Bot <eparis+openshiftbot@redhat.com>2017-06-13 16:02:18 -0400
committerGitHub <noreply@github.com>2017-06-13 16:02:18 -0400
commit3fed1873230d9e84c07824b7de98ae7edfc481ba (patch)
treee97d2dae693b22f30976e5804bdd02cc591cc84b /roles/openshift_persistent_volumes
parent75a46c184bda80158c085bcd38b40fd4d02aabd0 (diff)
parentee59257a018f081efa1f121cba40f857e07e9ef5 (diff)
downloadopenshift-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_persistent_volumes')
-rw-r--r--roles/openshift_persistent_volumes/templates/persistent-volume.yml.j26
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 }}"