pass in stopCh to cloud provider Initialize method for custom controllers

This commit is contained in:
andrewsykim
2018-10-19 17:00:43 -04:00
parent 8b36038b41
commit 2908174517
12 changed files with 19 additions and 13 deletions

View File

@@ -202,7 +202,7 @@ func startControllers(c *cloudcontrollerconfig.CompletedConfig, stop <-chan stru
}
if cloud != nil {
// Initialize the cloud provider with a reference to the clientBuilder
cloud.Initialize(c.ClientBuilder)
cloud.Initialize(c.ClientBuilder, stop)
}
// Start the CloudNodeController
nodeController := cloudcontrollers.NewCloudNodeController(