addonmanager

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: Apache-2.0 Imports: 29 Imported by: 39

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddonManager

type AddonManager interface {
	BaseAddonManager

	// Start starts all registered addon agents and controllers.
	Start(ctx context.Context) error
}

AddonManager is the interface based on BaseAddonManager to initialize a manager on hub to manage the addon agents and controllers

func New

func New(config *rest.Config) (AddonManager, error)

New returns a new Manager for creating addon agents.

type BaseAddonManager added in v0.10.0

type BaseAddonManager interface {
	// AddAgent register an addon agent to the manager.
	AddAgent(addon agent.AgentAddon) error

	// Trigger triggers a reconcile loop in the manager. Currently it
	// only trigger the deploy controller.
	Trigger(clusterName, addonName string)

	// StartWithInformers starts all registered addon agent with the given informers.
	StartWithInformers(ctx context.Context,
		workClient workclientset.Interface,
		workInformers workv1informers.ManifestWorkInformer,
		kubeInformers kubeinformers.SharedInformerFactory,
		addonInformers addoninformers.SharedInformerFactory,
		clusterInformers clusterv1informers.SharedInformerFactory,
		dynamicInformers dynamicinformer.DynamicSharedInformerFactory) error
}

BaseAddonManager is the interface to initialize a manager on hub to manage the addon agents on all managedcluster

type BaseAddonManagerImpl added in v0.10.0

type BaseAddonManagerImpl struct {
	// contains filtered or unexported fields
}

BaseAddonManagerImpl is the base implementation of BaseAddonManager that manages the addon agents and configs.

func NewBaseAddonManagerImpl added in v0.10.0

func NewBaseAddonManagerImpl(config *rest.Config) *BaseAddonManagerImpl

NewBaseAddonManagerImpl creates a new BaseAddonManagerImpl instance with the given config.

func (*BaseAddonManagerImpl) AddAgent added in v0.10.0

func (a *BaseAddonManagerImpl) AddAgent(addon agent.AgentAddon) error

func (*BaseAddonManagerImpl) GetAddonAgents added in v0.10.0

func (a *BaseAddonManagerImpl) GetAddonAgents() map[string]agent.AgentAddon

func (*BaseAddonManagerImpl) GetConfig added in v0.10.0

func (a *BaseAddonManagerImpl) GetConfig() *rest.Config

func (*BaseAddonManagerImpl) StartWithInformers added in v0.10.0

func (*BaseAddonManagerImpl) Trigger added in v0.10.0

func (a *BaseAddonManagerImpl) Trigger(clusterName, addonName string)

Directories

Path Synopsis
controllers

Jump to

Keyboard shortcuts

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