Help us shape the future of Go! Take the 2026 Go Developer Survey

controller

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2026 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Finalizer = "addons.projectcapsule.dev/restore"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangeWindowReconciler

type ChangeWindowReconciler struct {
	client.Client
	Reader          client.Reader
	Scheme          *runtime.Scheme
	Mapper          meta.RESTMapper
	Policies        *policy.Store
	Factory         executor.Factory
	SystemNamespace string
	Now             func() time.Time
}

func (*ChangeWindowReconciler) Reconcile

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

func (*ChangeWindowReconciler) SetupWithManager

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

type Journal

type Journal struct {
	Generation int64                  `json:"generation"`
	Spec       api.ChangeWindowSpec   `json:"spec"`
	Start      time.Time              `json:"start"`
	End        time.Time              `json:"end"`
	Entries    []executor.Participant `json:"entries"`
	Complete   bool                   `json:"complete,omitempty"`
}

Journal freezes the action plan before mutations. It lives in a controller-only Secret, not public status; optimistic locking prevents losing saved progress.

Jump to

Keyboard shortcuts

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