Documentation ¶
Index ¶
- Constants
- type CloneAuthFunc
- type Controller
- func (c *Controller) Execute() bool
- func (c *Controller) Run(threadiness int, stopCh <-chan struct{})
- func (c *Controller) VMIAffinityPatch(vm *virtv1.VirtualMachine, vmi *virtv1.VirtualMachineInstance) error
- func (c *Controller) VMICPUsPatch(vm *virtv1.VirtualMachine, vmi *virtv1.VirtualMachineInstance) error
- func (c *Controller) VMNodeSelectorPatch(vm *virtv1.VirtualMachine, vmi *virtv1.VirtualMachineInstance) error
- type VirtualMachineRevisionData
Constants ¶
View Source
const ( // ServiceAccount doesn't have permission to create a DataVolume UnauthorizedDataVolumeCreateReason = "UnauthorizedDataVolumeCreate" // FailedDataVolumeCreateReason is added in an event when posting a dynamically // generated dataVolume to the cluster fails. FailedDataVolumeCreateReason = "FailedDataVolumeCreate" // SuccessfulDataVolumeCreateReason is added in an event when a dynamically generated // dataVolume is successfully created SuccessfulDataVolumeCreateReason = "SuccessfulDataVolumeCreate" // SourcePVCNotAvailabe is added in an event when the source PVC of a valid // clone Datavolume doesn't exist SourcePVCNotAvailabe = "SourcePVCNotAvailabe" )
Repeating info / error messages
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloneAuthFunc ¶
type CloneAuthFunc func(dv *cdiv1.DataVolume, requestNamespace, requestName string, proxy cdiv1.AuthorizationHelperProxy, saNamespace, saName string) (bool, string, error)
type Controller ¶
type Controller struct { Queue workqueue.RateLimitingInterface // contains filtered or unexported fields }
func NewController ¶
func NewController(vmiInformer cache.SharedIndexInformer, vmInformer cache.SharedIndexInformer, dataVolumeInformer cache.SharedIndexInformer, dataSourceInformer cache.SharedIndexInformer, namespaceStore cache.Store, pvcInformer cache.SharedIndexInformer, crInformer cache.SharedIndexInformer, podInformer cache.SharedIndexInformer, instancetypeMethods instancetype.Methods, recorder record.EventRecorder, clientset kubecli.KubevirtClient, clusterConfig *virtconfig.ClusterConfig, netSynchronizer synchronizer, ) (*Controller, error)
func (*Controller) Execute ¶
func (c *Controller) Execute() bool
func (*Controller) Run ¶
func (c *Controller) Run(threadiness int, stopCh <-chan struct{})
func (*Controller) VMIAffinityPatch ¶
func (c *Controller) VMIAffinityPatch(vm *virtv1.VirtualMachine, vmi *virtv1.VirtualMachineInstance) error
func (*Controller) VMICPUsPatch ¶
func (c *Controller) VMICPUsPatch(vm *virtv1.VirtualMachine, vmi *virtv1.VirtualMachineInstance) error
func (*Controller) VMNodeSelectorPatch ¶
func (c *Controller) VMNodeSelectorPatch(vm *virtv1.VirtualMachine, vmi *virtv1.VirtualMachineInstance) error
type VirtualMachineRevisionData ¶
type VirtualMachineRevisionData struct {
Spec virtv1.VirtualMachineSpec `json:"spec"`
}
Follows the template used in createVMRevision for the Data.Raw value
Click to show internal directories.
Click to hide internal directories.