Unverified Commit 31e4ece5 authored by Kubernetes Prow Robot's avatar Kubernetes Prow Robot Committed by GitHub

Merge pull request #73075 from hello2mao/cloudprovider-informer

Set the informer on the user cloud object for out-off-tree cloudproviders
parents 76961c51 5024611b
...@@ -214,6 +214,10 @@ func startControllers(c *cloudcontrollerconfig.CompletedConfig, stopCh <-chan st ...@@ -214,6 +214,10 @@ func startControllers(c *cloudcontrollerconfig.CompletedConfig, stopCh <-chan st
if cloud != nil { if cloud != nil {
// Initialize the cloud provider with a reference to the clientBuilder // Initialize the cloud provider with a reference to the clientBuilder
cloud.Initialize(c.ClientBuilder, stopCh) cloud.Initialize(c.ClientBuilder, stopCh)
// Set the informer on the user cloud object
if informerUserCloud, ok := cloud.(cloudprovider.InformerUser); ok {
informerUserCloud.SetInformers(c.SharedInformers)
}
} }
for controllerName, initFn := range controllers { for controllerName, initFn := range controllers {
......
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