kubevirt

package
v0.1.25 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	LocalStorageVolumes = []string{
		"private",
		"public",
		"sockets",
		"virt-bin-share-dir",
		"libvirt-runtime",
		"ephemeral-disks",
		"container-disks",
		"hotplug-disks",
	}
)

Functions

func DeleteCache added in v0.1.10

func DeleteCache(ctx context.Context, cl client.Client, name, namespace string) error

DeleteCache deletes the cache DV

This function is not part of the interface, because it called from the nodePool reconciler Delete() method, that is called before getting the cacheImage.

func MachineTemplateSpec

func MachineTemplateSpec(nodePool *hyperv1.NodePool, bootImage BootImage, hcluster *hyperv1.HostedCluster) (*capikubevirt.KubevirtMachineTemplateSpec, error)

func PlatformValidation

func PlatformValidation(nodePool *hyperv1.NodePool) error

Types

type BootImage added in v0.1.10

type BootImage interface {
	// CacheImage creates a PVC to cache the node image.
	CacheImage(context.Context, client.Client, *hyperv1.NodePool, string) error

	String() string
	// contains filtered or unexported methods
}

BootImage represents the KubeVirt boot image. It responsible to hold cache the boot image and to generate its reference to be used by the node templates.

func GetImage

func GetImage(nodePool *hyperv1.NodePool, releaseImage *releaseinfo.ReleaseImage, hostedNamespace string) (BootImage, error)

type BootImageNamer added in v0.1.10

type BootImageNamer interface {
	GetCacheName() string
}

Jump to

Keyboard shortcuts

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