controller

package
v0.2.51 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const IPManagedCustomFieldsAnnotationName = "ipaddress.netbox.dev/managed-custom-fields"
View Source
const IPRManagedCustomFieldsAnnotationName = "iprange.netbox.dev/managed-custom-fields"
View Source
const IpAddressFinalizerName = "ipaddress.netbox.dev/finalizer"
View Source
const IpRangeClaimFinalizerName = "iprangeclaim.netbox.dev/finalizer"
View Source
const IpRangeFinalizerName = "iprange.netbox.dev/finalizer"
View Source
const PXManagedCustomFieldsAnnotationName = "prefix.netbox.dev/managed-custom-fields"
View Source
const PrefixFinalizerName = "prefix.netbox.dev/finalizer"

Variables

This section is empty.

Functions

func IgnoreDomainError added in v0.2.49

func IgnoreDomainError(reconcileRes ctrl.Result, err error) (ctrl.Result, error)

IgnoreDomainError strips DomainErrors from err (they have already been recorded in the status condition) while preserving any non-domain errors (e.g. a failed status patch) so they are returned to controller-runtime.

func NewDomainError added in v0.2.49

func NewDomainError(format string, args ...interface{}) error

NewDomainError creates an error that will update the resource status condition. Use this for errors that should be visible in kubectl describe output.

Types

type DomainError added in v0.2.49

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

DomainError wraps an error that should update status conditions. Use NewDomainError to create errors that should be reflected in status.

func (*DomainError) Error added in v0.2.49

func (e *DomainError) Error() string

func (*DomainError) Unwrap added in v0.2.49

func (e *DomainError) Unwrap() error

type EventStatusRecorder

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

func NewEventStatusRecorder

func NewEventStatusRecorder(rec record.EventRecorder) *EventStatusRecorder

func (*EventStatusRecorder) Recorder

func (esr *EventStatusRecorder) Recorder() record.EventRecorder

func (*EventStatusRecorder) Report

func (esr *EventStatusRecorder) Report(ctx context.Context, o ObjectWithConditions, condition metav1.Condition, eventType string, errExt error, additionalMessages ...string)

type IpAddressClaimReconciler

type IpAddressClaimReconciler struct {
	client.Client
	Scheme              *runtime.Scheme
	NetboxClient        *api.NetboxCompositeClient
	EventStatusRecorder *EventStatusRecorder
	OperatorNamespace   string
	RestConfig          *rest.Config
}

IpAddressClaimReconciler reconciles a IpAddressClaim object

func (*IpAddressClaimReconciler) Reconcile

func (r *IpAddressClaimReconciler) Reconcile(ctx context.Context, req ctrl.Request) (reconcileResult ctrl.Result, reconcileErr error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

func (*IpAddressClaimReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type IpAddressClaimRestorationData

type IpAddressClaimRestorationData struct {
	// only use immutable fields
	Namespace    string
	Name         string
	ParentPrefix string
	Tenant       string
}

type IpAddressReconciler

type IpAddressReconciler struct {
	client.Client
	Scheme              *runtime.Scheme
	NetboxClient        *api.NetboxCompositeClient
	EventStatusRecorder *EventStatusRecorder
	OperatorNamespace   string
	RestConfig          *rest.Config
}

IpAddressReconciler reconciles a IpAddress object

func (*IpAddressReconciler) Reconcile

func (r *IpAddressReconciler) Reconcile(ctx context.Context, req ctrl.Request) (reconcileResult ctrl.Result, reconcileErr error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

func (*IpAddressReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type IpRangeClaimReconciler

type IpRangeClaimReconciler struct {
	client.Client
	Scheme              *runtime.Scheme
	NetboxClient        *api.NetboxCompositeClient
	EventStatusRecorder *EventStatusRecorder
	OperatorNamespace   string
	RestConfig          *rest.Config
}

IpRangeClaimReconciler reconciles a IpRangeClaim object

func (*IpRangeClaimReconciler) Reconcile

func (r *IpRangeClaimReconciler) Reconcile(ctx context.Context, req ctrl.Request) (reconcileResult ctrl.Result, reconcileErr error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

func (*IpRangeClaimReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type IpRangeClaimRestorationData

type IpRangeClaimRestorationData struct {
	// only use immutable fields
	Namespace    string
	Name         string
	ParentPrefix string
	Tenant       string
	Size         string
}

type IpRangeReconciler

type IpRangeReconciler struct {
	client.Client
	Scheme              *runtime.Scheme
	NetboxClient        *api.NetboxCompositeClient
	EventStatusRecorder *EventStatusRecorder
	OperatorNamespace   string
	RestConfig          *rest.Config
}

IpRangeReconciler reconciles a IpRange object

func (*IpRangeReconciler) Reconcile

func (r *IpRangeReconciler) Reconcile(ctx context.Context, req ctrl.Request) (reconcileResult ctrl.Result, reconcileErr error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

func (*IpRangeReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type ObjectWithConditions

type ObjectWithConditions interface {
	client.Object
	Conditions() *[]metav1.Condition
}

type PrefixClaimReconciler

type PrefixClaimReconciler struct {
	client.Client
	Scheme              *runtime.Scheme
	NetboxClient        *api.NetboxCompositeClient
	EventStatusRecorder *EventStatusRecorder
	OperatorNamespace   string
	RestConfig          *rest.Config
}

PrefixClaimReconciler reconciles a PrefixClaim object

func (*PrefixClaimReconciler) Reconcile

func (r *PrefixClaimReconciler) Reconcile(ctx context.Context, req ctrl.Request) (reconcileResult ctrl.Result, reconcileErr error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

func (*PrefixClaimReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type PrefixClaimRestorationData

type PrefixClaimRestorationData struct {
	// only use immutable fields
	Namespace            string
	Name                 string
	ParentPrefix         string
	PrefixLength         string
	Tenant               string
	ParentPrefixSelector string
}

func (*PrefixClaimRestorationData) ComputeHash

func (rd *PrefixClaimRestorationData) ComputeHash() string

type PrefixReconciler

type PrefixReconciler struct {
	client.Client
	Scheme              *runtime.Scheme
	NetboxClient        *api.NetboxCompositeClient
	EventStatusRecorder *EventStatusRecorder
	OperatorNamespace   string
	RestConfig          *rest.Config
}

PrefixReconciler reconciles a Prefix object

func (*PrefixReconciler) Reconcile

func (r *PrefixReconciler) Reconcile(ctx context.Context, req ctrl.Request) (reconcileResult ctrl.Result, reconcileErr error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

func (*PrefixReconciler) SetupWithManager

func (r *PrefixReconciler) SetupWithManager(mgr ctrl.Manager) 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