mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 19:01:49 +00:00
Set the informer on the user cloud object
This commit is contained in:
parent
44419ce38e
commit
5024611b87
@ -213,6 +213,10 @@ func startControllers(c *cloudcontrollerconfig.CompletedConfig, stopCh <-chan st
|
||||
if cloud != nil {
|
||||
// Initialize the cloud provider with a reference to the clientBuilder
|
||||
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 {
|
||||
|
Loading…
Reference in New Issue
Block a user