controller

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package controller reconciles runeward Sandbox and Fleet custom resources onto the control-plane Manager.

It deliberately avoids controller-runtime: dynamic informers feed a work queue, backing runeward ids live in status, and a finalizer guarantees teardown of the underlying sandboxes/fleets on CR deletion.

Index

Constants

View Source
const (
	// Group is the API group of the runeward CRDs.
	Group = "runeward.dev"
	// Version is the CRD API version.
	Version = "v1alpha1"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

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

Controller reconciles runeward CRs against a control-plane Manager.

func New

func New(mgr *controlplane.Manager, dyn dynamic.Interface, namespace string, logger *slog.Logger) *Controller

New builds a Controller watching the given namespace ("" for all).

func (*Controller) Run

func (c *Controller) Run(ctx context.Context, workers int) error

Run starts the informers and reconcile workers, blocking until ctx is done.

Jump to

Keyboard shortcuts

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