config

package
v0.13.10 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BFDProfileWithDefaults

func BFDProfileWithDefaults(profile metallbv1beta1.BFDProfile, multiHop bool) metallbv1beta1.BFDProfile

func GetIPFromRangeByIndex

func GetIPFromRangeByIndex(ipRange string, index int) (string, error)

func IPAddressPoolToLegacy added in v0.13.0

func IPAddressPoolToLegacy(ipAddressPool metallbv1beta1.IPAddressPool, protocol config.Proto, bgpAdv []metallbv1beta1.BGPAdvertisement) metallbv1beta1.AddressPool

IPAddressPoolToLegacy converts the given IPAddressPool to the legacy addresspool.

func PoolCount

func PoolCount(p metallbv1beta1.IPAddressPool) (int64, error)

PoolCount returns the number of addresses in a given Pool.

func ValidateIPInRange

func ValidateIPInRange(addressPools []metallbv1beta1.IPAddressPool, ip string) error

Types

type Updater

type Updater interface {
	Update(r config.ClusterResources) error
	Clean() error
	Client() client.Client
	Namespace() string
}

func UpdaterForCRs added in v0.13.0

func UpdaterForCRs(r *rest.Config, ns string) (Updater, error)

Jump to

Keyboard shortcuts

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