controller

package
v0.1.198 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2026 License: MIT Imports: 27 Imported by: 0

README

Kubebuilder controllers

  • CRD reconciliation loop

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GenerationOrMetadataChangedPredicate added in v0.1.195

type GenerationOrMetadataChangedPredicate struct {
	predicate.Funcs
}

GenerationOrMetadataChangedPredicate combines generation changes with status.metadata changes. This ensures reconciliation on: - Spec changes (generation bump) - standard behavior - Status.metadata changes - allows non-leaders to pick up leader's metadata updates

func (GenerationOrMetadataChangedPredicate) Create added in v0.1.195

func (GenerationOrMetadataChangedPredicate) Delete added in v0.1.195

func (GenerationOrMetadataChangedPredicate) Generic added in v0.1.195

func (GenerationOrMetadataChangedPredicate) Update added in v0.1.195

type StatusMetadataChangedPredicate added in v0.1.195

type StatusMetadataChangedPredicate struct {
	predicate.Funcs
}

StatusMetadataChangedPredicate triggers reconciliation when status.metadata changes. This allows non-leader pods to detect when the leader updates metadata (e.g., port info).

func (StatusMetadataChangedPredicate) Update added in v0.1.195

type TinyFlowReconciler added in v0.1.148

type TinyFlowReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

TinyFlowReconciler reconciles a TinyFlow object

func (*TinyFlowReconciler) Reconcile added in v0.1.148

func (r *TinyFlowReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, 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. TODO(user): Modify the Reconcile function to compare the state specified by the TinyFlow object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.19.0/pkg/reconcile

func (*TinyFlowReconciler) SetupWithManager added in v0.1.148

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

SetupWithManager sets up the controller with the Manager.

type TinyModuleReconciler

type TinyModuleReconciler struct {
	client.Client
	Scheme     *runtime.Scheme
	Module     module.Info
	ClientPool clientpool.Pool
	IsLeader   *atomic.Bool
}

TinyModuleReconciler reconciles a TinyModule object

func (*TinyModuleReconciler) Reconcile

func (r *TinyModuleReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, 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. TODO(user): Modify the Reconcile function to compare the state specified by the TinyModule object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.15.0/pkg/reconcile

func (*TinyModuleReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type TinyNodeReconciler

type TinyNodeReconciler struct {
	client.Client
	Scheme    *runtime.Scheme
	Scheduler scheduler.Scheduler
	Module    module.Info
	IsLeader  *atomic.Bool
}

TinyNodeReconciler reconciles a TinyNode object

func (*TinyNodeReconciler) Reconcile

func (r *TinyNodeReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, 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. TODO(user): Modify the Reconcile function to compare the state specified by the TinyNode object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.15.0/pkg/reconcile

func (*TinyNodeReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type TinyProjectReconciler added in v0.1.148

type TinyProjectReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

TinyProjectReconciler reconciles a TinyProject object

func (*TinyProjectReconciler) Reconcile added in v0.1.148

func (r *TinyProjectReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, 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. TODO(user): Modify the Reconcile function to compare the state specified by the TinyProject object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.19.0/pkg/reconcile

func (*TinyProjectReconciler) SetupWithManager added in v0.1.148

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

SetupWithManager sets up the controller with the Manager.

type TinySignalReconciler added in v0.1.30

type TinySignalReconciler struct {
	client.Client
	Scheme    *runtime.Scheme
	Scheduler scheduler.Scheduler
	Module    module.Info
	IsLeader  *atomic.Bool
	// contains filtered or unexported fields
}

TinySignalReconciler reconciles a TinySignal object

func (*TinySignalReconciler) CancelAllRunningProcesses added in v0.1.192

func (r *TinySignalReconciler) CancelAllRunningProcesses()

CancelAllRunningProcesses cancels all running signal processes. This should be called when the pod loses leadership to ensure clean handoff.

func (*TinySignalReconciler) Reconcile added in v0.1.30

func (r *TinySignalReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, 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. TODO(user): Modify the Reconcile function to compare the state specified by the TinySignal object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.15.0/pkg/reconcile

func (*TinySignalReconciler) RequeueAllOnLeadershipChange added in v0.1.192

func (r *TinySignalReconciler) RequeueAllOnLeadershipChange()

RequeueAllOnLeadershipChange triggers requeue of all TinySignals when this pod becomes leader. This ensures signals that were skipped while not leader get processed.

func (*TinySignalReconciler) SetupWithManager added in v0.1.30

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

SetupWithManager sets up the controller with the Manager.

type TinyTrackerReconciler

type TinyTrackerReconciler struct {
	client.Client
	Scheme   *runtime.Scheme
	Manager  tracker.Manager
	IsLeader *atomic.Bool
}

TinyTrackerReconciler reconciles a TinyTracker object

func (*TinyTrackerReconciler) Reconcile

func (r *TinyTrackerReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, 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. TODO(user): Modify the Reconcile function to compare the state specified by the TinyTracker object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.15.0/pkg/reconcile

func (*TinyTrackerReconciler) SetupWithManager

func (r *TinyTrackerReconciler) 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