Add labels to vsphere cloud config (#4275)

This commit is contained in:
Ryler Hockenbury
2019-02-25 22:58:15 -05:00
committed by Kubernetes Prow Robot
parent b4aaa7b908
commit 88249308a0
2 changed files with 18 additions and 3 deletions

View File

@@ -41,4 +41,14 @@ scsicontrollertype = {{ vsphere_scsi_controller_type }}
{% if vsphere_public_network is defined and vsphere_public_network != "" %}
[Network]
public-network = {{ vsphere_public_network }}
{% endif %}
{% endif %}
{% if kube_version is version('v1.12.0', '>=') %}
[Labels]
{% if vsphere_zone_category is defined and vsphere_zone_category != "" %}
zone = {{ vsphere_zone_category }}
{% endif %}
{% if vsphere_region_category is defined and vsphere_region_category != "" %}
region = {{ vsphere_region_category }}
{% endif %}
{% endif %}