Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServiceController ¶
type ServiceController struct {
// contains filtered or unexported fields
}
func NewServiceController ¶
func NewServiceController(kubeClient kubernetes.Interface, osClient openstack.Interface) (*ServiceController, error)
NewServiceController returns a new service controller to keep openstack lbaas resources (load balancers) in sync with the registry.
func (*ServiceController) Run ¶
func (s *ServiceController) Run(stopCh <-chan struct{}) error
Run starts a background goroutine that watches for changes to services that have (or had) LoadBalancers=true and ensures that they have load balancers created and deleted appropriately. serviceSyncPeriod controls how often we check the cluster's services to ensure that the correct load balancers exist.
It's an error to call Run() more than once for a given ServiceController object.
Click to show internal directories.
Click to hide internal directories.