ipam

package
v0.2.1-0...-3687798 Latest Latest
Warning

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

Go to latest
Published: May 5, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdoptOrphanClaim

func AdoptOrphanClaim(
	ctx context.Context,
	runtimeClient client.Client,
	claimName string,
	machine *machinev1.Machine,
	ipAddressClaim *ipamv1beta1.IPAddressClaim) error

AdoptOrphanClaim updates the IPAddressClaim to belong to the specified machine.

func CountOutstandingIPAddressClaimsForMachine

func CountOutstandingIPAddressClaimsForMachine(
	ctx context.Context,
	runtimeClient client.Client,
	ipAddressClaims []ipamv1beta1.IPAddressClaim) int

CountOutstandingIPAddressClaimsForMachine determines the number of outstanding IP address claims a machine is waiting to be fulfilled.

func EnsureIPAddressClaim

func EnsureIPAddressClaim(
	ctx context.Context,
	runtimeClient client.Client,
	claimName string,
	machine *machinev1.Machine,
	pool machinev1.AddressesFromPool) (*ipamv1beta1.IPAddressClaim, error)

EnsureIPAddressClaim ensures an IPAddressClaim exists for the given claim name and pool

func GetIPAddressClaimName

func GetIPAddressClaimName(machine *machinev1.Machine, deviceIdx int, poolIdx int) string

GetIPAddressClaimName returns a consistently named claim name

func HasOutstandingIPAddressClaims

func HasOutstandingIPAddressClaims(
	ctx context.Context,
	runtimeClient client.Client,
	machine *machinev1.Machine,
	networkDevices []machinev1.NetworkDeviceSpec,
) (int, error)

HasOutstandingIPAddressClaims checks to see if a given machine has outstanding IP address claims

func HasStaticIPConfiguration

func HasStaticIPConfiguration(providerSpec *machinev1.VSphereMachineProviderSpec) bool

HasStaticIPConfiguration returns true if the specified machine has an address pool

func RemoveFinalizersForIPAddressClaims

func RemoveFinalizersForIPAddressClaims(
	ctx context.Context,
	runtimeClient client.Client,
	machine machinev1.Machine) error

func RetrieveBoundIPAddress

func RetrieveBoundIPAddress(
	ctx context.Context,
	runtimeClient client.Client,
	machine *machinev1.Machine,
	claimName string) (*ipamv1beta1.IPAddress, error)

RetrieveBoundIPAddress retrieves the IPAddress which is bound to the named IPAddressClaim

func VerifyIPAddressOwners

func VerifyIPAddressOwners(
	ctx context.Context,
	runtimeClient client.Client,
	machine *machinev1.Machine,
	networkDevices []machinev1.NetworkDeviceSpec) error

VerifyIPAddressOwners verifies that each IPAddress associated with the machine has the owner set.

Types

This section is empty.

Jump to

Keyboard shortcuts

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