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 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.