controller

package
v0.10.0-rc.6 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Overview

Package controller starts the fleet controller.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func App

func App() *cobra.Command

Types

type BindAddresses added in v0.10.0

type BindAddresses struct {
	Metrics     string
	HealthProbe string
}

type FleetManager

type FleetManager struct {
	command.DebugConfig
	Kubeconfig    string `usage:"Kubeconfig file"`
	Namespace     string `usage:"namespace to watch" default:"cattle-fleet-system" env:"NAMESPACE"`
	DisableGitops bool   `usage:"disable gitops components" name:"disable-gitops"`
}

func (*FleetManager) PersistentPre added in v0.10.0

func (r *FleetManager) PersistentPre(_ *cobra.Command, _ []string) error

func (*FleetManager) Run

func (f *FleetManager) Run(cmd *cobra.Command, args []string) error

type LeaderElectionOptions

type LeaderElectionOptions struct {
	// LeaseDuration is the duration that non-leader candidates will
	// wait to force acquire leadership. This is measured against time of
	// last observed ack. Default is 15 seconds.
	LeaseDuration *time.Duration

	// RenewDeadline is the duration that the acting controlplane will retry
	// refreshing leadership before giving up. Default is 10 seconds.
	RenewDeadline *time.Duration

	// RetryPeriod is the duration the LeaderElector clients should wait
	// between tries of actions. Default is 2 seconds.
	RetryPeriod *time.Duration
}

Directories

Path Synopsis
agent
Package agent builds manifests for creating a managed fleet-agent.
Package agent builds manifests for creating a managed fleet-agent.
connection
Package connection provides a connection to a Kubernetes cluster, used when importing a cluster.
Package connection provides a connection to a Kubernetes cluster, used when importing a cluster.
controllers/cluster
Package cluster provides controllers for managing clusters: status changes, importing, bootstrapping.
Package cluster provides controllers for managing clusters: status changes, importing, bootstrapping.
controllers/clustergroup
Package clustergroup provides a controller to update the ClusterGroup resource status.
Package clustergroup provides a controller to update the ClusterGroup resource status.
controllers/clusterregistration
Package clusterregistration implements manager-initiated and agent-initiated registration.
Package clusterregistration implements manager-initiated and agent-initiated registration.
controllers/clusterregistrationtoken
Package clusterregistrationtoken provides a controller for ClusterRegistrationToken.
Package clusterregistrationtoken provides a controller for ClusterRegistrationToken.
controllers/config
Package config reads the initial global configuration.
Package config reads the initial global configuration.
controllers/manageagent
Package manageagent provides a controller for managing the agent bundle.
Package manageagent provides a controller for managing the agent bundle.
secret
Package secret gets or creates service account secrets for cluster registration.
Package secret gets or creates service account secrets for cluster registration.
content
Package content purges orphaned content objects by inspecting bundledeployments in all namespaces.
Package content purges orphaned content objects by inspecting bundledeployments in all namespaces.
controllers/cleanup
Package cleanup provides a controller that cleans up resources that are no longer needed.
Package cleanup provides a controller that cleans up resources that are no longer needed.
Package options merges the BundleDeploymentOptions
Package options merges the BundleDeploymentOptions
Package config reads the initial global configuration.
Package config reads the initial global configuration.
Package summary provides a summary of a bundle's, gitrepo's or cluster's state.
Package summary provides a summary of a bundle's, gitrepo's or cluster's state.
Package target provides functionality around building and deploying bundledeployments.
Package target provides functionality around building and deploying bundledeployments.

Jump to

Keyboard shortcuts

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