node

package
v1.4.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// NodeUnresponsiveReason is in various places as reason to indicate that
	// an action was taken because virt-handler became unresponsive.
	NodeUnresponsiveReason = "NodeUnresponsive"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	Queue workqueue.RateLimitingInterface
	// contains filtered or unexported fields
}

Controller is the main Controller struct.

func NewController

func NewController(clientset kubecli.KubevirtClient, nodeInformer cache.SharedIndexInformer, vmiInformer cache.SharedIndexInformer, recorder record.EventRecorder) (*Controller, error)

NewController creates a new instance of the NodeController struct.

func (*Controller) Execute

func (c *Controller) Execute() bool

Execute runs commands from the controller queue, if there is an error it requeues the command. Returns false if the queue is empty.

func (*Controller) Run

func (c *Controller) Run(threadiness int, stopCh <-chan struct{})

Run runs the passed in NodeController.

Jump to

Keyboard shortcuts

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