Documentation ¶
Overview ¶
Package controllers wires and starts the controllers for the agent.
Index ¶
- func Register(ctx context.Context, appCtx *AppContext, ...) error
- type AppContext
- func (a *AppContext) Start(ctx context.Context) error
- func (a *AppContext) ToDiscoveryClient() (discovery.CachedDiscoveryInterface, error)
- func (a *AppContext) ToRESTConfig() (*rest.Config, error)
- func (a *AppContext) ToRESTMapper() (meta.RESTMapper, error)
- func (a *AppContext) ToRawKubeConfigLoader() clientcmd.ClientConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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) 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. |
Click to show internal directories.
Click to hide internal directories.