Move initialize cloud provider with client builder reference inside controller start func

This commit is contained in:
cici37
2021-02-02 13:25:33 -08:00
parent 498fa39af2
commit 27aaee2b40
3 changed files with 10 additions and 19 deletions

View File

@@ -102,12 +102,5 @@ func cloudInitializer(config *cloudcontrollerconfig.CompletedConfig) cloudprovid
}
}
// Initialize the cloud provider with a reference to the clientBuilder
cloud.Initialize(config.ClientBuilder, make(chan struct{}))
// Set the informer on the user cloud object
if informerUserCloud, ok := cloud.(cloudprovider.InformerUser); ok {
informerUserCloud.SetInformers(config.SharedInformers)
}
return cloud
}