Documentation
¶
Index ¶
- func MapPersistentVolumes(vm *v1.VM, restClient cache.Getter, namespace string) (*v1.VM, error)
- func NewDomainController(vmQueue workqueue.RateLimitingInterface, vmStore cache.Store, ...) (cache.Store, *kubecli.Controller)
- func NewVMController(lw cache.ListerWatcher, domainManager virtwrap.DomainManager, ...) (cache.Store, workqueue.RateLimitingInterface, *kubecli.Controller)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MapPersistentVolumes ¶
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 NewVMController ¶
func NewVMController(lw cache.ListerWatcher, domainManager virtwrap.DomainManager, recorder record.EventRecorder, restClient rest.RESTClient, clientset *kubernetes.Clientset, host string) (cache.Store, workqueue.RateLimitingInterface, *kubecli.Controller)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.