Skip to content

Commit e165b8a

Browse files
committed
Changed yaml to only set labels if more than one failure domain.
1 parent 9cdeec9 commit e165b8a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

pkg/asset/manifests/vsphere/cloudproviderconfig.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,13 @@ func CloudProviderConfigYaml(infraID string, p *vspheretypes.Platform) (string,
4747
InsecureFlag: true,
4848
},
4949
Vcenter: vCenters,
50-
Labels: cloudconfig.LabelsYAML{
50+
}
51+
52+
if len(p.FailureDomains) > 1 {
53+
cloudProviderConfig.Labels = cloudconfig.LabelsYAML{
5154
Zone: vspheretypes.TagCategoryZone,
5255
Region: vspheretypes.TagCategoryRegion,
53-
},
56+
}
5457
}
5558

5659
cloudProviderConfigYaml, err := yaml.Marshal(cloudProviderConfig)

0 commit comments

Comments
 (0)