Documentation ¶
Index ¶
- type LoadBalancerController
- func (lbc *LoadBalancerController) EnsureDeleteV1Finalizers(toCleanup []*v1.Ingress) error
- func (lbc *LoadBalancerController) EnsureDeleteV2Finalizer(ing *v1.Ingress) error
- func (lbc *LoadBalancerController) GCBackends(toKeep []*v1.Ingress) error
- func (lbc *LoadBalancerController) GCv1LoadBalancers(toKeep []*v1.Ingress) error
- func (lbc *LoadBalancerController) GCv2LoadBalancer(ing *v1.Ingress, scope meta.KeyType) error
- func (lbc *LoadBalancerController) PostProcess(state interface{}) error
- func (lbc *LoadBalancerController) Run()
- func (lbc *LoadBalancerController) Stop(deleteAll bool) error
- func (lbc *LoadBalancerController) SyncBackends(state interface{}) error
- func (lbc *LoadBalancerController) SyncLoadBalancer(state interface{}) error
- func (lbc *LoadBalancerController) ToSvcPorts(ings []*v1.Ingress) []utils.ServicePort
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoadBalancerController ¶
type LoadBalancerController struct { Translator *legacytranslator.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) EnsureDeleteV1Finalizers ¶ added in v1.8.0
func (lbc *LoadBalancerController) EnsureDeleteV1Finalizers(toCleanup []*v1.Ingress) error
EnsureDeleteV1Finalizers implements Controller.
func (*LoadBalancerController) EnsureDeleteV2Finalizer ¶ added in v1.8.0
func (lbc *LoadBalancerController) EnsureDeleteV2Finalizer(ing *v1.Ingress) error
EnsureDeleteV2Finalizer implements Controller.
func (*LoadBalancerController) GCBackends ¶ added in v1.4.0
func (lbc *LoadBalancerController) GCBackends(toKeep []*v1.Ingress) error
GCBackends implements Controller.
func (*LoadBalancerController) GCv1LoadBalancers ¶ added in v1.8.0
func (lbc *LoadBalancerController) GCv1LoadBalancers(toKeep []*v1.Ingress) error
GCv1LoadBalancers implements Controller.
func (*LoadBalancerController) GCv2LoadBalancer ¶ added in v1.8.0
GCv2LoadBalancer implements Controller.
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
func (lbc *LoadBalancerController) ToSvcPorts(ings []*v1.Ingress) []utils.ServicePort
ToSvcPorts returns a list of SVC ports given a list of ingresses. Note: This method is used for GC.