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 ¶
const (
AgentBundleName = "fleet-agent"
)
Variables ¶
This section is empty.
Functions ¶
func IsLocalCluster ¶ added in v0.16.0
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
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 Register ¶
func Register(ctx context.Context, systemNamespace string, apply apply.Apply, namespaces corecontrollers.NamespaceController, secret corecontrollers.SecretController, clusters fleetcontrollers.ClusterController, bundle fleetcontrollers.BundleController, )
func SkipCluster ¶ added in v0.13.0
SkipCluster checks if the cluster, according to its label, should be skipped for classic agent management.
Types ¶
This section is empty.