Documentation ¶
Index ¶
Constants ¶
View Source
const ( HandlerName = "harvester-node-config-controller" ConfigApplied = "Applied" ConfigAppliedAnnotation = "AppliedConfig" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct { NodeName string NodeConfigs ctlv1.NodeConfigController NodeConfigsCache ctlv1.NodeConfigCache NodeClient ctlnode.NodeController // contains filtered or unexported fields }
func Register ¶
func Register(ctx context.Context, nodeName string, nodecfg ctlv1.NodeConfigController, nodes ctlnode.NodeController, mtx *sync.Mutex) (*Controller, error)
func (*Controller) OnNodeConfigChange ¶
func (c *Controller) OnNodeConfigChange(key string, nodecfg *nodeconfigv1.NodeConfig) (*nodeconfigv1.NodeConfig, error)
func (*Controller) OnNodeConfigRemove ¶
func (c *Controller) OnNodeConfigRemove(key string, nodecfg *nodeconfigv1.NodeConfig) (*nodeconfigv1.NodeConfig, error)
Click to show internal directories.
Click to hide internal directories.