ipam

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2024 License: Apache-2.0 Imports: 25 Imported by: 2

Documentation

Index

Constants

View Source
const (
	EipDeleteReason      = "delete eip"
	EipAddOrUpdateReason = "add/update eip"
	EipNotContainIP      = "no available eip was found containing the ip"
)

Variables

This section is empty.

Functions

func SetupWithManager added in v0.6.0

func SetupWithManager(mgr ctrl.Manager) error

Types

type EIPController added in v0.6.0

type EIPController struct {
	client.Client
	record.EventRecorder
}

func (*EIPController) Reconcile added in v0.6.0

func (i *EIPController) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

type Manager added in v0.6.0

type Manager struct {
	client.Client
	record.EventRecorder
}

func NewManager added in v0.6.0

func NewManager(client client.Client) *Manager

func (*Manager) AssignIP added in v0.6.0

func (i *Manager) AssignIP(ctx context.Context, allocate *svcRecord) error

func (*Manager) ConstructRequest added in v0.6.0

func (i *Manager) ConstructRequest(ctx context.Context, svc *v1.Service) (req Request, err error)

func (*Manager) ReleaseIP added in v0.6.0

func (i *Manager) ReleaseIP(ctx context.Context, release *svcRecord) error

type Request added in v0.6.0

type Request struct {
	// The Allocate records specifying allocation
	Allocate *svcRecord

	// The Release records specifying release
	Release *svcRecord
}

type Result added in v0.6.0

type Result *svcRecord

The result of ip allocation

Jump to

Keyboard shortcuts

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