controllermanager

package
v0.0.0-...-dd18b94 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ControllerManager

type ControllerManager struct {

	// has SCTP support
	SCTPSupport bool
	// contains filtered or unexported fields
}

ControllerManager structure is the object manages all controllers

func NewControllerManager

func NewControllerManager(ovnClient *util.OVNClientset, wf *factory.WatchFactory,
	libovsdbOvnNBClient libovsdbclient.Client, libovsdbOvnSBClient libovsdbclient.Client,
	recorder record.EventRecorder, wg *sync.WaitGroup) (*ControllerManager, error)

NewControllerManager creates a new ovnkube controller manager to manage all the controller for all networks

func (*ControllerManager) CleanupStaleNetworks

func (cm *ControllerManager) CleanupStaleNetworks(validNetworks ...util.NetInfo) error

func (*ControllerManager) GetDefaultNetworkController

func (cm *ControllerManager) GetDefaultNetworkController() networkmanager.ReconcilableNetworkController

func (*ControllerManager) NewNetworkController

func (cm *ControllerManager) NewNetworkController(nInfo util.NetInfo) (networkmanager.NetworkController, error)

func (*ControllerManager) Start

func (cm *ControllerManager) Start(ctx context.Context) error

Start the ovnkube controller

func (*ControllerManager) Stop

func (cm *ControllerManager) Stop()

Stop gracefully stops all managed controllers

type NodeControllerManager

type NodeControllerManager struct {
	Kube kube.Interface
	// contains filtered or unexported fields
}

NodeControllerManager structure is the object manages all controllers for all networks for ovnkube-node

func NewNodeControllerManager

func NewNodeControllerManager(ovnClient *util.OVNClientset, wf factory.NodeWatchFactory, name string,
	wg *sync.WaitGroup, eventRecorder record.EventRecorder, routeManager *routemanager.Controller) (*NodeControllerManager, error)

NewNodeControllerManager creates a new OVN controller manager to manage all the controller for all networks

func (*NodeControllerManager) CleanupStaleNetworks

func (ncm *NodeControllerManager) CleanupStaleNetworks(validNetworks ...util.NetInfo) error

CleanupStaleNetworks cleans up all stale entities giving list of all existing secondary network controllers

func (*NodeControllerManager) GetDefaultNetworkController

func (ncm *NodeControllerManager) GetDefaultNetworkController() networkmanager.ReconcilableNetworkController

func (*NodeControllerManager) NewNetworkController

func (ncm *NodeControllerManager) NewNetworkController(nInfo util.NetInfo) (networkmanager.NetworkController, error)

NewNetworkController create secondary node network controllers for the given NetInfo

func (*NodeControllerManager) Start

func (ncm *NodeControllerManager) Start(ctx context.Context) (err error)

Start the node network controller manager

func (*NodeControllerManager) Stop

func (ncm *NodeControllerManager) Stop()

Stop gracefully stops all managed controllers

Jump to

Keyboard shortcuts

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