Documentation ¶
Index ¶
- Constants
- type Manager
- func (m *Manager) DeleteLoadBalancer(lb *lbv1.LoadBalancer) error
- func (m *Manager) EnsureBackendServers(lb *lbv1.LoadBalancer) ([]pkglb.BackendServer, error)
- func (m *Manager) EnsureLoadBalancer(lb *lbv1.LoadBalancer) error
- func (m *Manager) EnsureLoadBalancerServiceIP(lb *lbv1.LoadBalancer) (string, error)
- func (m *Manager) GetProbeReadyBackendServerCount(lb *lbv1.LoadBalancer) (int, error)
- func (m *Manager) ListBackendServers(lb *lbv1.LoadBalancer) ([]pkglb.BackendServer, error)
- func (m *Manager) RegisterHealthCheckHandler(handler pkglb.HealthCheckHandler) error
- type Server
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 ¶
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
Click to show internal directories.
Click to hide internal directories.