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.
Click to show internal directories.
Click to hide internal directories.