fleet

package
v1.26.0-rc.1 Latest Latest
Warning

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

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

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.

func NewDaemon

func NewDaemon(logger logr.Logger, rcClient remoteconfig.RCClient) *Daemon

NewDaemon creates a new Fleet Daemon.

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.

Jump to

Keyboard shortcuts

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