cocoonset

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2026 License: MIT Imports: 23 Imported by: 0

Documentation

Overview

Package cocoonset hosts the CocoonSet reconciler and pod builder helpers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reconciler

type Reconciler struct {
	client.Client
	Scheme *runtime.Scheme
	Epoch  epoch.SnapshotRegistry
}

Reconciler watches CocoonSet resources and manages the lifecycle of agent and toolbox pods to match the declared spec.

func (*Reconciler) Reconcile

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

Reconcile drives a single CocoonSet toward its desired state by ensuring the correct set of agent and toolbox pods exist.

func (*Reconciler) SetupWithManager

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

SetupWithManager registers the reconciler. For uses GenerationChangedPredicate to avoid status-update loops; Owns keeps pod events to drive readyAgents diffs.

Jump to

Keyboard shortcuts

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