Documentation ¶
Index ¶
- Constants
- type Adapter
- type Builder
- func (r *Builder) ConfigMap(_ ref.Ref, _ *core.Secret, _ *core.ConfigMap) (err error)
- func (r *Builder) DataVolumes(vmRef ref.Ref, secret *core.Secret, _ *core.ConfigMap) (dvs []cdi.DataVolumeSpec, err error)
- func (r *Builder) Load() (err error)
- func (r *Builder) ResolveDataVolumeIdentifier(dv *cdi.DataVolume) string
- func (r *Builder) Secret(vmRef ref.Ref, in, object *core.Secret) (err error)
- func (r *Builder) Tasks(vmRef ref.Ref) (list []*plan.Task, err error)
- func (r *Builder) TemplateLabels(vmRef ref.Ref) (labels map[string]string, err error)
- func (r *Builder) VirtualMachine(vmRef ref.Ref, object *cnv.VirtualMachineSpec, dataVolumes []cdi.DataVolume) (err error)
- type Client
- func (r *Client) CheckSnapshotReady(vmRef ref.Ref, snapshot string) (ready bool, err error)
- func (r *Client) Close()
- func (r *Client) CreateSnapshot(vmRef ref.Ref) (id string, err error)
- func (r *Client) PowerOff(vmRef ref.Ref) (err error)
- func (r *Client) PowerOn(vmRef ref.Ref) (err error)
- func (r *Client) PowerState(vmRef ref.Ref) (state string, err error)
- func (r *Client) PoweredOff(vmRef ref.Ref) (poweredOff bool, err error)
- func (r *Client) RemoveSnapshots(vmRef ref.Ref, precopies []planapi.Precopy) (err error)
- func (r *Client) SetCheckpoints(vmRef ref.Ref, precopies []planapi.Precopy, datavolumes []cdi.DataVolume, ...) (err error)
- type EsxHost
- type Validator
- func (r *Validator) Load() (err error)
- func (r *Validator) MaintenanceMode(vmRef ref.Ref) (ok bool, err error)
- func (r *Validator) NetworksMapped(vmRef ref.Ref) (ok bool, err error)
- func (r *Validator) PodNetwork(vmRef ref.Ref) (ok bool, err error)
- func (r *Validator) StorageMapped(vmRef ref.Ref) (ok bool, err error)
- func (r *Validator) WarmMigration() (ok bool)
Constants ¶
const ( Pod = "pod" Multus = "multus" )
Network types
const ( TemplateOSLabel = "os.template.kubevirt.io/%s" TemplateWorkloadLabel = "workload.template.kubevirt.io/server" TemplateFlavorLabel = "flavor.template.kubevirt.io/medium" )
Template labels
const ( DefaultWindows = "win10" DefaultLinux = "rhel8.1" Unknown = "unknown" )
Operating Systems
const (
Efi = "efi"
)
BIOS types
const (
Tablet = "tablet"
)
Input types
const (
Virtio = "virtio"
)
Bus types
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter struct{}
vSphere adapter.
type Builder ¶
type Builder struct { *plancontext.Context // contains filtered or unexported fields }
vSphere builder.
func (*Builder) DataVolumes ¶
func (r *Builder) DataVolumes(vmRef ref.Ref, secret *core.Secret, _ *core.ConfigMap) (dvs []cdi.DataVolumeSpec, err error)
Create DataVolume specs for the VM.
func (*Builder) ResolveDataVolumeIdentifier ¶
func (r *Builder) ResolveDataVolumeIdentifier(dv *cdi.DataVolume) string
Return a stable identifier for a VDDK DataVolume.
func (*Builder) TemplateLabels ¶
func (*Builder) VirtualMachine ¶
func (r *Builder) VirtualMachine(vmRef ref.Ref, object *cnv.VirtualMachineSpec, dataVolumes []cdi.DataVolume) (err error)
Create the destination Kubevirt VM.
type Client ¶
type Client struct { *plancontext.Context // contains filtered or unexported fields }
vSphere VM Client
func (*Client) CheckSnapshotReady ¶
Check if a snapshot is ready to transfer.
func (*Client) CreateSnapshot ¶
Create a VM snapshot and return its ID.
func (*Client) PowerState ¶
Get the power state of the VM.
func (*Client) PoweredOff ¶
Determine whether the VM has been powered off.
func (*Client) RemoveSnapshots ¶
Remove all warm migration snapshots.
type EsxHost ¶
type EsxHost struct { // Host url. URL string // Host secret. Secret *core.Secret // contains filtered or unexported fields }
ESX Host.
func (*EsxHost) DatastoreID ¶
Translate datastore ID.
func (*EsxHost) TestConnection ¶
Test the connection.
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
vSphere validator.
func (*Validator) MaintenanceMode ¶
Validate that a VM's Host isn't in maintenance mode.
func (*Validator) NetworksMapped ¶
Validate that a VM's networks have been mapped.
func (*Validator) PodNetwork ¶
Validate that no more than one of a VM's networks is mapped to the pod network.
func (*Validator) StorageMapped ¶
Validate that a VM's disk backing storage has been mapped.
func (*Validator) WarmMigration ¶
Validate whether warm migration is supported from this provider type.