package
0.1.0
Repository: https://github.com/kunalkushwaha/go-sdk.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
TODO Namespace could be different, also store it somewhere in the domain, so that we can report deletes on handler startup properly.
No description provided by the author
No description provided by the author
Given a VirtualMachineInstance, create a NodeSelectorTerm with anti-affinity for that VirtualMachineInstance's node.
RegisterDefaults adds defaulters functions to the given scheme.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Given a VirtualMachineInstance, update all NodeSelectorTerms with anti-affinity for that VirtualMachineInstance's node.

# Constants

This label marks resources that belong to KubeVirt.
BlockMigration means that all VirtualMachineInstance disks should be copied over to the destination host.
CacheNone - I/O from the guest is not cached on the host, but may be kept in a writeback disk cache.
CacheWriteThrough - I/O from the guest is cached on the host but written through to the physical medium.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
This label is used to match virtual machine instance IDs with pods.
No description provided by the author
No description provided by the author
This annotation is used to match virtual machine instances represented as libvirt XML domains with their pods.
This annotation represents that this object is for temporary use during updates.
No description provided by the author
Failed means that the vmi crashed, disappeared unexpectedly or got deleted from the cluster before it was ever started.
GroupName is the group name use in this package.
a disk image must exist at given disk path.
if disk does not exist at the given path, a disk image will be created there.
HPETTickPolicyCatchup Delivers ticks at a higher rate to catch up with the missed tick.
HPETTickPolicyDelay delivers ticks at a constant rate.
HPETTickPolicyDiscard discards all missed ticks.
HPETTickPolicyMerge merges the missed tick(s) into one tick and inject.
This annotation is used to inject ignition data Used on VirtualMachineInstance.
This label indicates the object is a part of the install strategy retrieval process.
This annotation represents the kubevirt registry used for an install strategy configmap.
This annotation represents the kubevirt version for an install strategy configmap.
No description provided by the author
No description provided by the author
Whether all resources were created and up-to-date.
Whether all components were ready.
Whether the deployment or deletion was successful (only used if false).
Whether we're in the process of updating previously deployed version.
The deletion succeeeded.
The deletion is processing.
The deployment succeeded.
The deployment is processing.
LiveMigration means that VirtualMachineInstance disks will not be copied over to the destination host.
This label will be set on all resources created by the operator.
No description provided by the author
No description provided by the author
No description provided by the author
MigrationAbortFailed means that the vmi live migration has failed to be abort.
MigrationAbortInProgress mean that the vmi live migration is aborting.
MigrationAbortSucceeded means that the VirtualMachineInstance live migration has been aborted.
The migration failed.
This label is used to indicate that this pod is the target of a migration job.
Represents the name of the migration job this target pod is associated with.
The migration is accepted by the system.
These are the valid migration phases.
The migration's target pod is being prepared for migration.
The migration is in progress.
The migration's target pod is running.
The migration's target pod is being scheduled.
The migration passed.
This label describes which cluster node runs the target Pod for a Virtual Machine Instance migration job.
The migration's target pod is prepared and ready for migration.
This label describes which cluster node runs the virtual machine instance.
This label declares whether a particular node is available for scheduling virtual machine instances on it.
No description provided by the author
Pending means the VirtualMachineInstance has been accepted by the system.
PITTickPolicyCatchup Delivers ticks at a higher rate to catch up with the missed tick.
PITTickPolicyDelay delivers ticks at a constant rate.
PITTickPolicyDiscard discards all missed ticks.
No description provided by the author
No description provided by the author
No description provided by the author
RTCTickPolicyCatchup Delivers ticks at a higher rate to catch up with the missed tick.
RTCTickPolicyDelay delivers ticks at a constant rate.
Running means the pod has been bound to a node and the VirtualMachineInstance is started.
VMI should always be running.
VMI should never be running.
VMI can be started/stopped using API endpoints.
VMI will initially be running--and restarted if a failure occurs.
Placeholder.
A target pod was scheduled and the system saw that Pod in runnig state.
A target Pod exists but is not yet scheduled and in running state.
No description provided by the author
No description provided by the author
These are the currently defined state change requests.
No description provided by the author
These are the currently defined state change requests.
No description provided by the author
Succeeded means that the VirtualMachineInstance stopped voluntarily, e.g.
No description provided by the author
TrackGuest tracks the guest time.
TrackWall tracks the host time.
TrayStateClosed indicates that the tray of a cdrom or floppy is closed.
TrayStateOpen indicates that the tray of a cdrom or floppy is open.
Unknown means that for some reason the state of the VirtualMachineInstance could not be obtained, typically due to an error in communicating with the host of the VirtualMachineInstance.
This annotation is regularly updated by virt-handler to help determine if a particular node is alive and hence should be available for new virtual machine instance scheduling.
VirtualMachineFailure is added in a virtual machine when its vmi fails to be created due to insufficient quota, limit ranges, pod security policy, node selectors, etc.
Reflects whether the QEMU guest agent is connected through the channel.
No description provided by the author
Indicates whether the VMI is live migratable.
VirtualMachineInstanceMigrationAbortRequested indicates that live migration abort has been requested.
No description provided by the author
VMIReady means the pod is able to service requests and should be added to the load balancing pools of all matching services.
Reason means that VMI is not live migratioable because of it's disks collection.
VirtualMachineInstanceReplicaSetReplicaFailure is added in a replica set when one of its vmis fails to be created due to insufficient quota, limit ranges, pod security policy, node selectors, etc.
VirtualMachineInstanceReplicaSetReplicaPaused is added in a replica set when the replica set got paused by the controller.
If there happens any error while trying to synchronize the VirtualMachineInstance with the Domain, this is reported as false.
When a VirtualMachineInstance Object is first initialized and no phase, or Pending is present.
WatchdogActionPoweroff will poweroff the vmi if the watchdog gets triggered.
WatchdogActionReset will reset the vmi if the watchdog gets triggered.
WatchdogActionShutdown will shutdown the vmi if the watchdog gets triggered.

# Variables

No description provided by the author
No description provided by the author
GroupVersion is group version used to register these objects.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GroupVersion is group version used to register these objects.
No description provided by the author
GroupVersionKind.
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

If set (default), BIOS will be used.
Represents the firmware blob used to assist in the domain creation process.
--- +k8s:openapi-gen=true.
Represents the clock and timers of a vmi.
Exactly one of its members must be set.
UTC sets the guest clock to UTC on each boot.
Represents a cloud-init nocloud user data source.
ConfigMapVolumeSource adapts a ConfigMap into a volume.
Represents a docker image with an embedded disk.
CPU allows specifying the CPU topology.
CPUFeature allows specifying a CPU feature.
--- +k8s:openapi-gen=true.
--- +k8s:openapi-gen=true.
Extra DHCP options to use in the interface.
DHCPExtraOptions defines Extra DHCP options for a VM.
--- +k8s:openapi-gen=true.
Represents the target of a volume to mount.
--- +k8s:openapi-gen=true.
--- +k8s:openapi-gen=true.
If set, EFI will be used instead of BIOS.
EmptyDisk represents a temporary disk which shares the vmis lifecycle.
--- +k8s:openapi-gen=true.
--- +k8s:openapi-gen=true.
Hyperv specific features.
--- +k8s:openapi-gen=true.
--- +k8s:openapi-gen=true.
Represents if a feature is enabled or disabled.
--- +k8s:openapi-gen=true.
--- +k8s:openapi-gen=true.
--- +k8s:openapi-gen=true.
Represents the genie cni network.
Handler defines a specific action that should be taken TODO: pass structured data to these actions, and document that data here.
Represents a disk created on the cluster level --- +k8s:openapi-gen=true.
--- +k8s:openapi-gen=true.
Hugepages allow to use hugepages for the VirtualMachineInstance instead of regular memory.
--- +k8s:openapi-gen=true.
i6300esb watchdog device.
--- +k8s:openapi-gen=true.
--- +k8s:openapi-gen=true.
Represents the method which will be used to connect the interface to the guest.
--- +k8s:openapi-gen=true.
--- +k8s:openapi-gen=true.
--- +k8s:openapi-gen=true.
--- +k8s:openapi-gen=true.
KubeVirt represents the object deploying all KubeVirt resources --- +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +k8s:openapi-gen=true.
KubeVirtCondition represents a condition of a KubeVirt deployment --- +k8s:openapi-gen=true.
KubeVirtList is a list of KubeVirts --- +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +k8s:openapi-gen=true.
--- +k8s:openapi-gen=true.
KubeVirtStatus represents information pertaining to a KubeVirt deployment.
--- +k8s:openapi-gen=true.
--- +k8s:openapi-gen=true.
--- +k8s:openapi-gen=true.
Memory allows specifying the VirtualMachineInstance memory features.
Represents the multus cni network.
Network represents a network type and a resource that should be connected to the vm.
Represents the source resource that will be connected to the vm.
--- +k8s:openapi-gen=true.
Represents the stock pod network interface.
Port repesents a port to expose from the virtual machine.
Probe describes a health check to be performed against a VirtualMachineInstance to determine whether it is alive or ready to receive traffic.
--- +k8s:openapi-gen=true.
Rng represents the random device passed from host --- +k8s:openapi-gen=true.
--- +k8s:openapi-gen=true.
SecretVolumeSource adapts a Secret into a volume.
ServiceAccountVolumeSource adapts a ServiceAccount into a volume.
Represents all available timers in a vmi.
VirtualMachine handles the VirtualMachines that are not running or are in a stopped state The VirtualMachine contains the template to create the VirtualMachineInstance.
VirtualMachineCondition represents the state of VirtualMachine --- +k8s:openapi-gen=true.
VirtualMachineInstance is *the* VirtualMachineInstance Definition.
--- +k8s:openapi-gen=true.
VirtualMachineInstanceList is a list of VirtualMachines --- +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +k8s:openapi-gen=true.
VirtualMachineInstanceMigration represents the object tracking a VMI's migration to another host in the cluster --- +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +k8s:openapi-gen=true.
--- +k8s:openapi-gen=true.
VirtualMachineInstanceMigrationList is a list of VirtualMachineMigrations --- +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +k8s:openapi-gen=true.
--- +k8s:openapi-gen=true.
No description provided by the author
VirtualMachineInstanceMigration reprents information pertaining to a VMI's migration.
--- +k8s:openapi-gen=true.
--- +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +k8s:openapi-gen=true.
VirtualMachineInstancePresetList is a list of VirtualMachinePresets --- +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +k8s:openapi-gen=true.
--- +k8s:openapi-gen=true.
VirtualMachineInstance is *the* VirtualMachineInstance Definition.
--- +k8s:openapi-gen=true.
VMIList is a list of VMIs --- +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +k8s:openapi-gen=true.
--- +k8s:openapi-gen=true.
--- +k8s:openapi-gen=true.
VirtualMachineInstanceSpec is a description of a VirtualMachineInstance.
VirtualMachineInstanceStatus represents information about the status of a VirtualMachineInstance.
--- +k8s:openapi-gen=true.
VirtualMachineList is a list of virtualmachines --- +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +k8s:openapi-gen=true.
VirtualMachineSpec describes how the proper VirtualMachine should look like --- +k8s:openapi-gen=true.
No description provided by the author
VirtualMachineStatus represents the status returned by the controller to describe how the VirtualMachine is doing --- +k8s:openapi-gen=true.
No description provided by the author
Volume represents a named volume in a vmi.
Represents the source of a volume to mount.
Named watchdog device.
Hardware watchdog device.

# Type aliases

ClockOffsetTimezone sets the guest clock to the specified timezone.
--- +k8s:openapi-gen=true.
+k8s:openapi-gen=true.
--- +k8s:openapi-gen=true.
HPETTickPolicy determines what happens when QEMU misses a deadline for injecting a tick to the guest.
No description provided by the author
--- +k8s:openapi-gen=true.
KubeVirtPhase is a label for the phase of a KubeVirt deployment at the current time.
--- +k8s:openapi-gen=true.
PITTickPolicy determines what happens when QEMU misses a deadline for injecting a tick to the guest.
RTCTickPolicy determines what happens when QEMU misses a deadline for injecting a tick to the guest.
RTCTimerTrack specifies from which source to track the time.
StateChangeRequestType represents the existing state change requests that are possible --- +k8s:openapi-gen=true.
--- +k8s:openapi-gen=true.
TrayState indicates if a tray of a cdrom or floppy is open or closed.
--- +k8s:openapi-gen=true.
--- +k8s:openapi-gen=true.
+k8s:openapi-gen=true.
--- +k8s:openapi-gen=true.
VirtualMachineInstanceMigrationPhase is a label for the condition of a VirtualMachineInstanceMigration at the current time.
VirtualMachineInstancePhase is a label for the condition of a VirtualMachineInstance at the current time.
--- +k8s:openapi-gen=true.
VirtualMachineRunStrategy is a label for the requested VirtualMachineInstance Running State at the current time.
WatchdogAction defines the watchdog action, if a watchdog gets triggered.