fleet

package
v1.28.0 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2026 License: Apache-2.0 Imports: 26 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Daemon

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

Daemon subscribes to fleet-specific RC products (installer configs and tasks) and runs after leader election as a controller-runtime Runnable.

The daemon is a pure RC adapter: it translates RC tasks into DDA annotation writes and observes phase transitions to report outcomes back to RC. It never reads or writes status.experiment.phase — that is the reconciler's exclusive responsibility.

func NewDaemon

func NewDaemon(rcClient remoteconfig.RCClient, mgr manager.Manager, revisionsEnabled bool) *Daemon

NewDaemon creates a new Fleet Daemon. When revisionsEnabled is false, experiment signals are rejected because the reconciler cannot process them without the ControllerRevision machinery.

func (*Daemon) NeedLeaderElection

func (d *Daemon) NeedLeaderElection() bool

NeedLeaderElection implements manager.LeaderElectionRunnable. The daemon only runs on the elected leader.

func (*Daemon) Start

func (d *Daemon) Start(ctx context.Context) error

Start implements manager.Runnable. It subscribes to fleet RC products and blocks until ctx is cancelled.

type Operation

type Operation string

Operation is the type of fleet management operation to perform on a Kubernetes resource.

const (
	OperationCreate Operation = "create"
	OperationUpdate Operation = "update"
	OperationDelete Operation = "delete"
)

Jump to

Keyboard shortcuts

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