Skip to content

Commit

Permalink
pass in stopCh to cloud provider Initialize method for custom control…
Browse files Browse the repository at this point in the history
…lers

Kubernetes-commit: 2908174517cc1ded8a3dc283d2e8e34d7ad9be7a
  • Loading branch information
andrewsykim authored and k8s-publishing-bot committed Oct 19, 2018
1 parent 98bf722 commit 4025669
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cloud.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@ type ControllerClientBuilder interface {
// Interface is an abstract, pluggable interface for cloud providers.
type Interface interface {
// Initialize provides the cloud with a kubernetes client builder and may spawn goroutines
// to perform housekeeping activities within the cloud provider.
Initialize(clientBuilder ControllerClientBuilder)
// to perform housekeeping or run custom controllers specific to the cloud provider.
// Any tasks started here should be cleaned up when the stop channel closes.
Initialize(clientBuilder ControllerClientBuilder, stop <-chan struct{})
// LoadBalancer returns a balancer interface. Also returns true if the interface is supported, false otherwise.
LoadBalancer() (LoadBalancer, bool)
// Instances returns an instances interface. Also returns true if the interface is supported, false otherwise.
Expand Down

0 comments on commit 4025669

Please sign in to comment.