watch

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2018 License: Apache-2.0 Imports: 37 Imported by: 6

Documentation

Index

Constants

View Source
const (
	// FailedCreateVirtualMachineReason is added in an event and in a replica set condition
	// when a virtual machine for a replica set is failed to be created.
	FailedCreateVirtualMachineReason = "FailedCreate"
	// SuccessfulCreateVirtualMachineReason is added in an event when a virtual machine for a replica set
	// is successfully created.
	SuccessfulCreateVirtualMachineReason = "SuccessfulCreate"
	// FailedDeleteVirtualMachineReason is added in an event and in a replica set condition
	// when a virtual machine for a replica set is failed to be deleted.
	FailedDeleteVirtualMachineReason = "FailedDelete"
	// SuccessfulDeleteVirtualMachineReason is added in an event when a virtual machine for a replica set
	// is successfully deleted.
	SuccessfulDeleteVirtualMachineReason = "SuccessfulDelete"
	// SuccessfulPausedReplicaSetReason is added in an event when the replica set discovered that it
	// should be paused. The event is triggered after it successfully managed to add the Paused Condition
	// to itself.
	SuccessfulPausedReplicaSetReason = "SuccessfulPaused"
	// SuccessfulResumedReplicaSetReason is added in an event when the replica set discovered that it
	// should be resumed. The event is triggered after it successfully managed to remove the Paused Condition
	// from itself.
	SuccessfulResumedReplicaSetReason = "SuccessfulResumed"
)

Reasons for replicaset events

View Source
const (
	// FailedCreatePodReason is added in an event and in a vmi controller condition
	// when a pod for a vmi controller failed to be created.
	FailedCreatePodReason = "FailedCreate"
	// SuccessfulCreatePodReason is added in an event when a pod for a vmi controller
	// is successfully created.
	SuccessfulCreatePodReason = "SuccessfulCreate"
	// FailedDeletePodReason is added in an event and in a vmi controller condition
	// when a pod for a vmi controller failed to be deleted.
	FailedDeletePodReason = "FailedDelete"
	// SuccessfulDeletePodReason is added in an event when a pod for a vmi controller
	// is successfully deleted.
	SuccessfulDeletePodReason = "SuccessfulDelete"
	// FailedHandOverPodReason is added in an event and in a vmi controller condition
	// when transferring the pod ownership from the controller to virt-hander fails.
	FailedHandOverPodReason = "FailedHandOver"
	// SuccessfulHandOverPodReason is added in an event
	// when the pod ownership transfer from the controller to virt-hander succeeds.
	SuccessfulHandOverPodReason = "SuccessfulHandOver"
)

Reasons for vmi events

Variables

This section is empty.

Functions

func Execute

func Execute()

func OwnerRef added in v0.1.0

Types

type NodeController added in v0.5.0

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

NodeController is the main NodeController struct.

func NewNodeController added in v0.5.0

func NewNodeController(clientset kubecli.KubevirtClient, nodeInformer cache.SharedIndexInformer, vmiInformer cache.SharedIndexInformer, recorder record.EventRecorder) *NodeController

NewNodeController creates a new instance of the NodeController struct.

func (*NodeController) Execute added in v0.5.0

func (c *NodeController) 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 (*NodeController) Run added in v0.5.0

func (c *NodeController) Run(threadiness int, stopCh chan struct{})

Run runs the passed in NodeController.

type VMController

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

func NewVMController

func NewVMController(vmiInformer cache.SharedIndexInformer, vmiVMInformer cache.SharedIndexInformer, recorder record.EventRecorder, clientset kubecli.KubevirtClient) *VMController

func (*VMController) Execute

func (c *VMController) Execute() bool

func (*VMController) Run

func (c *VMController) Run(threadiness int, stopCh chan struct{})

type VMIController added in v0.6.1

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

func NewVMIController added in v0.6.1

func NewVMIController(templateService services.TemplateService, vmiInformer cache.SharedIndexInformer, podInformer cache.SharedIndexInformer, recorder record.EventRecorder, clientset kubecli.KubevirtClient, configMapInformer cache.SharedIndexInformer) *VMIController

func (*VMIController) Execute added in v0.6.1

func (c *VMIController) Execute() bool

func (*VMIController) Run added in v0.6.1

func (c *VMIController) Run(threadiness int, stopCh chan struct{})

type VMIReplicaSet added in v0.6.1

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

func NewVMIReplicaSet added in v0.6.1

func NewVMIReplicaSet(vmiInformer cache.SharedIndexInformer, vmiRSInformer cache.SharedIndexInformer, recorder record.EventRecorder, clientset kubecli.KubevirtClient, burstReplicas uint) *VMIReplicaSet

func (*VMIReplicaSet) Execute added in v0.6.1

func (c *VMIReplicaSet) Execute() bool

func (*VMIReplicaSet) Run added in v0.6.1

func (c *VMIReplicaSet) Run(threadiness int, stopCh chan struct{})

type VirtControllerApp

type VirtControllerApp struct {
	service.ServiceListen

	LeaderElection leaderelectionconfig.Configuration
	// contains filtered or unexported fields
}

func (*VirtControllerApp) AddFlags added in v0.1.0

func (vca *VirtControllerApp) AddFlags()

func (*VirtControllerApp) Run

func (vca *VirtControllerApp) Run()

type VirtualMachinePresetController added in v0.3.0

type VirtualMachinePresetController struct {
	// contains filtered or unexported fields
}

func NewVirtualMachinePresetController added in v0.3.0

func NewVirtualMachinePresetController(vmiPresetInformer cache.SharedIndexInformer, vmiInitInformer cache.SharedIndexInformer, queue workqueue.RateLimitingInterface, vmiInitCache cache.Store, clientset kubecli.KubevirtClient, recorder record.EventRecorder) *VirtualMachinePresetController

func (*VirtualMachinePresetController) Execute added in v0.3.0

func (c *VirtualMachinePresetController) Execute() bool

func (*VirtualMachinePresetController) Run added in v0.3.0

func (c *VirtualMachinePresetController) Run(threadiness int, stopCh chan struct{})

Jump to

Keyboard shortcuts

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