controller

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2026 License: MIT Imports: 37 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseRestartNamespaces

func ParseRestartNamespaces(raw string) ([]string, error)

ParseRestartNamespaces validates a comma-separated restart namespace allowlist. An empty value means cluster-wide.

Types

type EvidenceReconciler

type EvidenceReconciler struct {
	client.Client
	Reader client.Reader
}

func (*EvidenceReconciler) Reconcile

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

func (*EvidenceReconciler) SetupWithManager

func (r *EvidenceReconciler) SetupWithManager(m ctrl.Manager) error

type ProfileReconciler

type ProfileReconciler struct {
	client.Client
	Reader             client.Reader
	Namespace          string
	WorkerImage        string
	AllowedMirrorHosts []string
	NodeMetricsAddress string
	GCGrace            time.Duration
	GCSweepInterval    time.Duration
	Recorder           record.EventRecorder
}

func (*ProfileReconciler) Reconcile

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

func (*ProfileReconciler) SetupWithManager

func (r *ProfileReconciler) SetupWithManager(m ctrl.Manager) error

type RestartEngine

type RestartEngine struct {
	Client                   client.Client
	Reader                   client.Reader
	MaxConcurrent            int
	WorkloadProgressDeadline time.Duration
	Now                      func() time.Time
	Recorder                 record.EventRecorder
	Leadership               *RestartLeadership
	// Namespaces limits restart candidates; empty means cluster-wide.
	Namespaces []string
}

RestartEngine is invoked only by the single-worker RuntimeImage controller. Leader election and that serialized queue make its persisted global slot accounting exclusive across all RuntimeImage resources.

func (*RestartEngine) Reconcile

func (e *RestartEngine) Reconcile(ctx context.Context, im *api.RuntimeImage) error

type RestartLeadership

type RestartLeadership struct {
	Config *rest.Config
	// contains filtered or unexported fields
}

RestartLeadership adds a cluster singleton without changing the manager's component-namespace election lease during a rolling feature enablement. Its leader context cancels in-flight restart API calls if that lease is lost.

func (*RestartLeadership) NeedLeaderElection

func (l *RestartLeadership) NeedLeaderElection() bool

func (*RestartLeadership) Start

func (l *RestartLeadership) Start(ctx context.Context) error

type RuntimeMetrics

type RuntimeMetrics struct {
	Reader client.Reader
	// contains filtered or unexported fields
}

func NewRuntimeMetrics

func NewRuntimeMetrics(reader client.Reader) *RuntimeMetrics

func (*RuntimeMetrics) Collect

func (m *RuntimeMetrics) Collect(ch chan<- prometheus.Metric)

func (*RuntimeMetrics) Describe

func (m *RuntimeMetrics) Describe(ch chan<- *prometheus.Desc)

type RuntimeReconciler

type RuntimeReconciler struct {
	client.Client
	Reader               client.Reader
	NodeProgressDeadline time.Duration
	Now                  func() time.Time
	AllowedMirrorHosts   []string
	Restarts             *RestartEngine
}

func (*RuntimeReconciler) Reconcile

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

func (*RuntimeReconciler) SetupWithManager

func (r *RuntimeReconciler) SetupWithManager(m ctrl.Manager) error

type UninstallCoordinator

type UninstallCoordinator struct {
	Client           client.Client
	ReleaseName      string
	ReleaseNamespace string
	PollInterval     time.Duration
}

func (*UninstallCoordinator) Run

Run never mutates workers or finalizers. Helm must retain the operator and its RBAC until this coordinator has observed complete controller-driven reversal.

Jump to

Keyboard shortcuts

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