manager

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 52 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Instance

type Instance struct {

	// Kubernetes service mapping
	VIPs []string
	Port int32
	UID  string
	Type string
	// contains filtered or unexported fields
}

Instance defines an instance of everything needed to manage vips

func NewInstance added in v0.4.3

func NewInstance(svc *v1.Service, config *kubevip.Config) (*Instance, error)

type Manager

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

Manager degines the manager of the load-balancing services

func New

func New(configMap string, config *kubevip.Config) (*Manager, error)

New will create a new managing object

func (*Manager) AutoDiscoverCIDRs added in v0.5.5

func (sm *Manager) AutoDiscoverCIDRs() (serviceCIDR, podCIDR string, err error)

func (*Manager) PrometheusCollector

func (sm *Manager) PrometheusCollector() []prometheus.Collector

PrometheusCollector defines a service watch event counter.

func (*Manager) Start

func (sm *Manager) Start() error

Start will begin the Manager, which will start services and watch the configmap

func (*Manager) StartServicesLeaderElection added in v0.5.5

func (sm *Manager) StartServicesLeaderElection(ctx context.Context, service *v1.Service, wg *sync.WaitGroup) error

The startServicesWatchForLeaderElection function will start a services watcher, the

func (*Manager) TeardownEgress added in v0.5.12

func (sm *Manager) TeardownEgress(podIP, vipIP, destinationPorts, namespace string) error

Jump to

Keyboard shortcuts

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