kubevip

package
v0.2.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	GlobalIPPoolName = "global"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type IPPoolConverter

type IPPoolConverter struct {

	// GlobalIPPoolName pool is a special pool that is used to allocate IP for the namespace where no other pools are defined.
	GlobalIPPoolNamePool     *lbv1.IPPool
	GlobalIPPoolNameRangeSet allocator.RangeSet
	// contains filtered or unexported fields
}

func NewIPPoolConverter

func NewIPPoolConverter(cmClient ctlcorev1.ConfigMapClient) *IPPoolConverter

func (*IPPoolConverter) AfterConversion

func (c *IPPoolConverter) AfterConversion() error

AfterConversion will add the annotation into kubevip configmap to tag that the conversion is done.

func (*IPPoolConverter) ConvertFromKubevipConfigMap

func (c *IPPoolConverter) ConvertFromKubevipConfigMap() ([]*lbv1.IPPool, error)

ConvertFromKubevipConfigMap converts the kubevip configmap to be IPPools.

Jump to

Keyboard shortcuts

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