service

package
v0.0.0-...-8d69865 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2017 License: Apache-2.0 Imports: 18 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL