ipam

package
v0.0.0-...-89b14fa 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: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type Allocator

type Allocator interface {
	// Get assigns IP addresses for Pod.
	Get(ctx context.Context, namespace, podName string, options *Options) ([]oapiv1.IPConfig, error)
}

func NewAllocator

func NewAllocator(c client.Client) Allocator

type Options

type Options struct {
	// Count of IPv4 addresses to be allocated.
	IPv4 int

	// Count of IPv6 addresses to be allocated.
	IPv6 int
}

Options for IP allocation.

Jump to

Keyboard shortcuts

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