vmware / cloud-provider-for-cloud-director

Kubernetes External Cloud Provider for VMware Cloud Director
Other
20 stars 30 forks source link

[VKCI-305] update manifests and templates for multi az CPI #357

Closed Anirudh9794 closed 8 months ago

Anirudh9794 commented 8 months ago

For CPI to recognize that the cluster is a multi zone cluster, a config map needs to be provided along with setting the isZoneEnabledCluster flag in the vcloud-ccm-configmap.

The CPI Deployment needs to mount this configmap as a volume and parse the the zones.

But we don't want no zone clusters to create this configmap and hence the Deployment manifest for a no zone cluster should not be modified to include the zones configmap.

This PR updates the existing manifests for CPI and adds a volume mount for the zone configmap

For a no-zone cluster, either the Deployment manifest should be modified to remove the zone volume mount (or) a zone cofigmap with an empty zone list should be created.