controllers

package
v0.9.11 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Overview

Package controllers wires and starts the controllers for the agent.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(ctx context.Context,
	appCtx *AppContext,
	fleetNamespace, defaultNamespace, agentScope string,
	checkinInterval time.Duration) error

Types

type AppContext

type AppContext struct {
	Fleet   fleetcontrollers.Interface
	Core    corecontrollers.Interface
	Batch   batchcontrollers.Interface
	Dynamic dynamic.Interface
	Apply   apply.Apply

	ClusterNamespace string
	ClusterName      string
	AgentNamespace   string
	// contains filtered or unexported fields
}

func NewAppContext

func NewAppContext(fleetNamespace, agentNamespace, clusterNamespace, clusterName string,
	fleetRESTConfig *rest.Config, clientConfig clientcmd.ClientConfig,
	fleetMapper, mapper meta.RESTMapper, discovery discovery.CachedDiscoveryInterface) (*AppContext, error)

func (*AppContext) Start

func (a *AppContext) Start(ctx context.Context) error

func (*AppContext) ToDiscoveryClient

func (a *AppContext) ToDiscoveryClient() (discovery.CachedDiscoveryInterface, error)

func (*AppContext) ToRESTConfig

func (a *AppContext) ToRESTConfig() (*rest.Config, error)

func (*AppContext) ToRESTMapper

func (a *AppContext) ToRESTMapper() (meta.RESTMapper, error)

func (*AppContext) ToRawKubeConfigLoader

func (a *AppContext) ToRawKubeConfigLoader() clientcmd.ClientConfig

Directories

Path Synopsis
Package bundledeployment deploys bundles, monitors them and cleans up.
Package bundledeployment deploys bundles, monitors them and cleans up.
Package cluster updates the cluster.fleet.cattle.io status in the upstream cluster with the current node status.
Package cluster updates the cluster.fleet.cattle.io status in the upstream cluster with the current node status.

Jump to

Keyboard shortcuts

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