controller

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2019 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoadBalancerController

type LoadBalancerController struct {
	Translator *translator.Translator
	// contains filtered or unexported fields
}

LoadBalancerController watches the kubernetes api and adds/removes services from the loadbalancer, via loadBalancerConfig.

func NewLoadBalancerController

func NewLoadBalancerController(
	ctx *context.ControllerContext,
	stopCh chan struct{}) *LoadBalancerController

NewLoadBalancerController creates a controller for gce loadbalancers.

func (*LoadBalancerController) GCBackends added in v1.4.0

func (lbc *LoadBalancerController) GCBackends(state interface{}) error

GCBackends implements Controller.

func (*LoadBalancerController) GCLoadBalancers added in v1.4.0

func (lbc *LoadBalancerController) GCLoadBalancers(state interface{}) error

GCLoadBalancers implements Controller.

func (*LoadBalancerController) Init added in v1.4.0

func (lbc *LoadBalancerController) Init()

func (*LoadBalancerController) PostProcess added in v1.4.0

func (lbc *LoadBalancerController) PostProcess(state interface{}) error

PostProcess implements Controller.

func (*LoadBalancerController) Run

func (lbc *LoadBalancerController) Run()

Run starts the loadbalancer controller.

func (*LoadBalancerController) Stop

func (lbc *LoadBalancerController) Stop(deleteAll bool) error

Stop stops the loadbalancer controller. It also deletes cluster resources if deleteAll is true.

func (*LoadBalancerController) SyncBackends added in v1.4.0

func (lbc *LoadBalancerController) SyncBackends(state interface{}) error

SyncBackends implements Controller.

func (*LoadBalancerController) SyncLoadBalancer added in v1.4.0

func (lbc *LoadBalancerController) SyncLoadBalancer(state interface{}) error

SyncLoadBalancer implements Controller.

func (*LoadBalancerController) ToSvcPorts added in v1.2.2

ToSvcPorts is a helper method over translator.TranslateIngress to process a list of ingresses. Note: This method is used for GC.

type NodeController

type NodeController struct {
	// contains filtered or unexported fields
}

NodeController synchronizes the state of the nodes to the unmanaged instance groups.

func NewNodeController

func NewNodeController(ctx *context.ControllerContext, instancePool instances.NodePool) *NodeController

NewNodeController returns a new node update controller.

func (*NodeController) Run

func (c *NodeController) Run()

Run a goroutine to process updates for the controller.

func (*NodeController) Shutdown

func (c *NodeController) Shutdown()

Shutdown shuts down the goroutine that processes node updates.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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