controllers

package
v0.1.0-alpha.8 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Overview

Package controllers implements controllers to handle allocations using infoblox resources.

Index

Constants

View Source
const (
	// ProtectPoolFinalizer is used to prevent deletion of a Pool object while its addresses have not been deleted.
	ProtectPoolFinalizer = "ipam.cluster.x-k8s.io/ProtectPool"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type InfobloxClaimHandler

type InfobloxClaimHandler struct {
	client.Client
	// contains filtered or unexported fields
}

InfobloxClaimHandler handles infoblox claims.

func (*InfobloxClaimHandler) EnsureAddress

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

EnsureAddress ensures address.

func (*InfobloxClaimHandler) FetchPool

FetchPool fetches pool from cluster.

func (*InfobloxClaimHandler) GetPool

func (h *InfobloxClaimHandler) GetPool() client.Object

GetPool returns local pool.

func (*InfobloxClaimHandler) ReleaseAddress

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

ReleaseAddress releases address.

type InfobloxIPPoolReconciler

type InfobloxIPPoolReconciler struct {
	client.Client
	Scheme *runtime.Scheme

	OperatorNamespace     string
	NewInfobloxClientFunc func(config infoblox.Config) (infoblox.Client, error)
}

InfobloxIPPoolReconciler reconciles a InfobloxIPPool object.

func (*InfobloxIPPoolReconciler) Reconcile

func (r *InfobloxIPPoolReconciler) Reconcile(ctx context.Context, req ctrl.Request) (res ctrl.Result, reterr error)

Reconcile an InfobloxIPPool.

func (*InfobloxIPPoolReconciler) SetupWithManager

func (r *InfobloxIPPoolReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type InfobloxInstanceReconciler

type InfobloxInstanceReconciler struct {
	client.Client
	Scheme *runtime.Scheme

	OperatorNamespace     string
	NewInfobloxClientFunc func(config infoblox.Config) (infoblox.Client, error)
}

InfobloxInstanceReconciler reconciles a InfobloxInstance object.

func (*InfobloxInstanceReconciler) Reconcile

func (r *InfobloxInstanceReconciler) Reconcile(ctx context.Context, req ctrl.Request) (res ctrl.Result, reterr error)

Reconcile and InfobloxInstance.

func (*InfobloxInstanceReconciler) SetupWithManager

func (r *InfobloxInstanceReconciler) SetupWithManager(_ context.Context, mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type InfobloxProviderAdapter

type InfobloxProviderAdapter struct {
	NewInfobloxClientFunc func(config infoblox.Config) (infoblox.Client, error)
	OperatorNamespace     string
}

InfobloxProviderAdapter reconciles a InfobloxIPPool object.

func (*InfobloxProviderAdapter) ClaimHandlerFor

ClaimHandlerFor returns handler for claim.

func (*InfobloxProviderAdapter) SetupWithManager

func (r *InfobloxProviderAdapter) SetupWithManager(_ context.Context, b *ctrl.Builder) error

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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