COntroller-manager is crashing in customer environment as vSphere Cloud Provider

is not using lower case naming while creating clientBuilder.
With this fix, ClientBuilder is created using lowercase naming.
pull/6/head
rohitjogvmw 2017-12-17 08:49:13 -08:00
parent 5f92042610
commit a043d45152
1 changed files with 1 additions and 1 deletions

View File

@ -217,7 +217,7 @@ func (vs *VSphere) Initialize(clientBuilder controller.ControllerClientBuilder)
// Only on controller node it is required to register listeners.
// Register callbacks for node updates
client := clientBuilder.ClientOrDie("vSphere-cloud-provider")
client := clientBuilder.ClientOrDie("vsphere-cloud-provider")
factory := informers.NewSharedInformerFactory(client, 5*time.Minute)
nodeInformer := factory.Core().V1().Nodes()
nodeInformer.Informer().AddEventHandler(cache.ResourceEventHandlerFuncs{