Documentation ¶
Index ¶
- type AddonManager
- type BaseAddonManager
- type BaseAddonManagerImpl
- func (a *BaseAddonManagerImpl) AddAgent(addon agent.AgentAddon) error
- func (a *BaseAddonManagerImpl) GetAddonAgents() map[string]agent.AgentAddon
- func (a *BaseAddonManagerImpl) GetConfig() *rest.Config
- func (a *BaseAddonManagerImpl) StartWithInformers(ctx context.Context, workClient workclientset.Interface, ...) error
- func (a *BaseAddonManagerImpl) Trigger(clusterName, addonName string)
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
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 (a *BaseAddonManagerImpl) StartWithInformers(ctx context.Context, workClient workclientset.Interface, workInformers workv1informers.ManifestWorkInformer, kubeInformers kubeinformers.SharedInformerFactory, addonInformers addoninformers.SharedInformerFactory, clusterInformers clusterv1informers.SharedInformerFactory, dynamicInformers dynamicinformer.DynamicSharedInformerFactory) error
func (*BaseAddonManagerImpl) Trigger ¶ added in v0.10.0
func (a *BaseAddonManagerImpl) Trigger(clusterName, addonName string)
Click to show internal directories.
Click to hide internal directories.