simplelb

package
v1.8.5 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const XdsNodePort = 31799

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

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

func New

func New(mgr manager.Manager) *Provider

func (*Provider) EnsureLoadBalancer

func (s *Provider) EnsureLoadBalancer(ctx context.Context, vmService *vmopv1.VirtualMachineService) error

func (*Provider) GetServiceAnnotations

func (s *Provider) GetServiceAnnotations(ctx context.Context, vmService *vmopv1.VirtualMachineService) (map[string]string, error)

func (*Provider) GetServiceLabels

func (s *Provider) GetServiceLabels(ctx context.Context, vmService *vmopv1.VirtualMachineService) (map[string]string, error)

func (*Provider) GetToBeRemovedServiceAnnotations

func (s *Provider) GetToBeRemovedServiceAnnotations(ctx context.Context, vmService *vmopv1.VirtualMachineService) (map[string]string, error)

func (*Provider) GetToBeRemovedServiceLabels

func (s *Provider) GetToBeRemovedServiceLabels(ctx context.Context, vmService *vmopv1.VirtualMachineService) (map[string]string, error)

func (*Provider) GetVirtualMachineClassName

func (s *Provider) GetVirtualMachineClassName(ctx context.Context, namespace string) (string, error)

GetVirtualMachineClassName returns the class name for loadbalancer-vm. We need to choose the VM class name which the namespace has access to instead of hardcode it.

func (*Provider) GetVirtualMachineImageName

func (s *Provider) GetVirtualMachineImageName(ctx context.Context) (string, error)

GetVirtualMachineImageName returns the image name for loadbalancer-vm image in the cluster. Since we use generateName for VirtualMachineImage resources, we cannot directly use 'loadbalancer-vm'.

type XdsServer

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

func NewXdsServer

func NewXdsServer(mgr manager.Manager, logger logr.Logger) *XdsServer

func (*XdsServer) Start

func (x *XdsServer) Start(ctx context.Context) error

func (*XdsServer) UpdateEndpoints

func (x *XdsServer) UpdateEndpoints(svc *corev1.Service, eps *corev1.Endpoints) error

Jump to

Keyboard shortcuts

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