mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	Merge pull request #73075 from hello2mao/cloudprovider-informer
Set the informer on the user cloud object for out-off-tree cloudproviders
This commit is contained in:
		@@ -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 {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user