manageagent

package
v0.16.0 Latest Latest
Warning

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

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

Documentation

Overview

Package manageagent provides a controller for managing the agent bundle.

Allows Fleet to deploy the Fleet Agent itself as a Bundle, which ensures changes to Fleet’s configuration are reflected in the Agent. The agent is deployed into the namespace, that contains a cluster resource.

Index

Constants

View Source
const (
	AgentBundleName = "fleet-agent"
)

Variables

This section is empty.

Functions

func IsLocalCluster added in v0.16.0

func IsLocalCluster(cluster *fleet.Cluster) bool

IsLocalCluster is a fast, metadata-only check that a Cluster object is the management (local) cluster: the well-known name in the configured bootstrap namespace, matching what the bootstrap controller creates. Restricting the disable behavior to this cluster ensures a downstream cluster can never have its agent skipped or torn down.

func LocalAgentDisabled added in v0.16.0

func LocalAgentDisabled(cluster *fleet.Cluster) bool

LocalAgentDisabled reports whether the fleet-agent must NOT be deployed to this cluster. It only ever applies to the management (local) cluster and is driven by the global config value Bootstrap.LocalAgentDisabled.

func SkipCluster added in v0.13.0

func SkipCluster(cluster *fleet.Cluster) bool

SkipCluster checks if the cluster, according to its label, should be skipped for classic agent management.

Types

This section is empty.

Jump to

Keyboard shortcuts

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