virthandler

package
v0.0.1-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2017 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MapPersistentVolumes

func MapPersistentVolumes(vm *v1.VM, restClient cache.Getter, namespace string) (*v1.VM, error)

Almost everything in the VM object maps exactly to its domain counterpart One exception is persistent volume claims. This function looks up each PV and inserts a corrected disk entry into the VM's device map.

func NewDomainController

func NewDomainController(vmQueue workqueue.RateLimitingInterface, vmStore cache.Store, informer cache.SharedInformer) (cache.Store, *kubecli.Controller)

TODO: Define the exact scope of this controller. For now it looks like we should use domain events to detect unexpected domain changes like crashes or vms going into pause mode because of resource shortage or cut off connections to storage.

func NewDomainControllerFunc

func NewDomainControllerFunc(vmQueue workqueue.RateLimitingInterface, vmStore cache.Store) kubecli.ControllerFunc

func NewVMControllerFunc

func NewVMControllerFunc(domainManager virtwrap.DomainManager, recorder record.EventRecorder, restClient rest.RESTClient, clientset *kubernetes.Clientset, host string) kubecli.ControllerFunc

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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