Commit a043d451 authored by rohitjogvmw's avatar rohitjogvmw

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.
parent 5f920426
......@@ -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{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment