node

package
v1.10.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewReconciler

func NewReconciler(mgr manager.Manager, namespace string, options Options) (reconcile.Reconciler, error)

NewReconciler returns a new Reconciler for Nodes and registers it with the manager. It reuses the manager's shared Node cache (already populated by the CNR transitioner) to avoid duplicating API traffic.

Types

type Options

type Options struct {
	ReconcileConcurrency int
	RequeueAfter         time.Duration
}

Options contains configuration for the node controller.

type Reconciler

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

Reconciler watches Node objects and cleans up stale Cyclops-managed annotations left behind when a CycleNodeRequest is deleted before reaching a terminal phase.

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)

Reconcile checks whether a Node with the cyclopsManagedAnnotation is still involved in an active CycleNodeRequest. If it is not, both the scale-down-disabled annotation and the Cyclops marker annotation are removed. Nodes not selected by any NodeGroup are skipped as they are not under Cyclops management.

Jump to

Keyboard shortcuts

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