lb

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2022 License: Apache-2.0 Imports: 31 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ReasonDeleteLoadBalancer = "deleteLoadBalancer"
	ReasonAddLoadBalancer    = "addLoadBalancer"
	AddLoadBalancerMsg       = "success to add nexthops %v"
	AddLoadBalancerFailedMsg = "failed to add nexthops %v, err=%v"
	DelLoadBalancerMsg       = "loadbalancer ip changed from %s to %s"
	DelLoadBalancerFailedMsg = "speaker del loadbalancer failed, err=%v"
)

Variables

This section is empty.

Functions

func IsOpenELBNPService

func IsOpenELBNPService(obj runtime.Object) bool

Judge whether this load balancer should be exposed by OpenELB Service Such Service will be exposed by Proxy Pod

func IsOpenELBService

func IsOpenELBService(obj runtime.Object) bool

func SetupServiceReconciler

func SetupServiceReconciler(mgr ctrl.Manager) error

Types

type EnqueueRequestForDeAndDs

type EnqueueRequestForDeAndDs struct {
	client.Client
}

Enqueue requests for Deployments and DaemonSets type Only OpenELB NodeProxy needs this

func (*EnqueueRequestForDeAndDs) Create

Create implements EventHandler

func (*EnqueueRequestForDeAndDs) Delete

Delete implements EventHandler

func (*EnqueueRequestForDeAndDs) Generic

Generic implements EventHandler

func (*EnqueueRequestForDeAndDs) Update

Update implements EventHandler

type EnqueueRequestForNode

type EnqueueRequestForNode struct {
	client.Client
}

func (*EnqueueRequestForNode) Create

Create implements EventHandler

func (*EnqueueRequestForNode) Delete

Delete implements EventHandler

func (*EnqueueRequestForNode) Generic

Generic implements EventHandler

func (*EnqueueRequestForNode) Update

Update implements EventHandler

type ServiceReconciler

type ServiceReconciler struct {
	client.Client
	record.EventRecorder
}

ServiceReconciler reconciles a Service object

func (*ServiceReconciler) Reconcile

func (r *ServiceReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

func (*ServiceReconciler) SetupWithManager

func (r *ServiceReconciler) SetupWithManager(mgr ctrl.Manager) error

type SvcAnnotator

type SvcAnnotator struct {
	client.Client
	// contains filtered or unexported fields
}

func (*SvcAnnotator) Handle

func (*SvcAnnotator) InjectDecoder

func (r *SvcAnnotator) InjectDecoder(d *admission.Decoder) error

Jump to

Keyboard shortcuts

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