servicelb

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeyLabel       = loadbalancer.GroupName + "/servicelb"
	KeyServiceName = "kubernetes.io/service-name"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	*prober.Manager
	// contains filtered or unexported fields
}

func NewManager

func NewManager(ctx context.Context, serviceClient ctlCorev1.ServiceClient, serviceCache ctlCorev1.ServiceCache,
	endpointSliceClient ctldiscoveryv1.EndpointSliceClient, endpointSliceCache ctldiscoveryv1.EndpointSliceCache,
	vmiCache ctlkubevirtv1.VirtualMachineInstanceCache) *Manager

func (*Manager) DeleteLoadBalancer

func (m *Manager) DeleteLoadBalancer(lb *lbv1.LoadBalancer) error

func (*Manager) EnsureBackendServers added in v0.4.1

func (m *Manager) EnsureBackendServers(lb *lbv1.LoadBalancer) ([]pkglb.BackendServer, error)

func (*Manager) EnsureLoadBalancer

func (m *Manager) EnsureLoadBalancer(lb *lbv1.LoadBalancer) error

func (*Manager) EnsureLoadBalancerServiceIP added in v0.4.1

func (m *Manager) EnsureLoadBalancerServiceIP(lb *lbv1.LoadBalancer) (string, error)

func (*Manager) GetProbeReadyBackendServerCount added in v0.4.1

func (m *Manager) GetProbeReadyBackendServerCount(lb *lbv1.LoadBalancer) (int, error)

if probe is disabled, then return the endpint count

func (*Manager) ListBackendServers added in v0.4.1

func (m *Manager) ListBackendServers(lb *lbv1.LoadBalancer) ([]pkglb.BackendServer, error)

func (*Manager) RegisterHealthCheckHandler added in v0.4.1

func (m *Manager) RegisterHealthCheckHandler(handler pkglb.HealthCheckHandler) error

call only once before controller starts looping on OnChange ...

type Server added in v0.2.0

type Server struct {
	*kubevirtv1.VirtualMachineInstance
}

func (*Server) GetAddress added in v0.2.0

func (s *Server) GetAddress() (string, bool)

Jump to

Keyboard shortcuts

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