controllers

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Overview

Package controllers implements controllers to handle allocations using Nutanix IPAM.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultReconcilerOptions

func DefaultReconcilerOptions() reconcilerOptions

Types

type IPAddressClaimHandler

type IPAddressClaimHandler struct {
	// contains filtered or unexported fields
}

IPAddressClaimHandler reconciles a NutanixIPPool object.

func (*IPAddressClaimHandler) EnsureAddress

func (h *IPAddressClaimHandler) EnsureAddress(
	ctx context.Context,
	address *ipamv1.IPAddress,
) (*ctrl.Result, error)

EnsureAddress ensures that the IPAddress contains a valid address.

func (*IPAddressClaimHandler) FetchPool

FetchPool fetches the NutanixIPPool.

func (*IPAddressClaimHandler) ReleaseAddress

func (h *IPAddressClaimHandler) ReleaseAddress(ctx context.Context) (*ctrl.Result, error)

ReleaseAddress releases the ip address.

type NutanixProviderAdapter

type NutanixProviderAdapter struct {
	// contains filtered or unexported fields
}

NutanixProviderAdapter is used as middle layer for provider integration.

func NewNutanixProviderAdapter

func NewNutanixProviderAdapter(
	client ctrlclient.Client,
	watchFilter string,
	secretInformer coreinformers.SecretInformer,
	cmInformer coreinformers.ConfigMapInformer,
	opts reconcilerOptions,
) *NutanixProviderAdapter

func (*NutanixProviderAdapter) ClaimHandlerFor

ClaimHandlerFor returns a claim handler for a specific claim.

func (*NutanixProviderAdapter) SetupWithManager

func (i *NutanixProviderAdapter) SetupWithManager(_ context.Context, b *ctrl.Builder) error

SetupWithManager sets up the controller with the Manager.

Directories

Path Synopsis
Package mockclient is a generated GoMock package.
Package mockclient is a generated GoMock package.

Jump to

Keyboard shortcuts

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