Documentation ¶
Index ¶
- Variables
- func DeleteCache(ctx context.Context, cl client.Client, name, namespace string) error
- func MachineTemplateSpec(nodePool *hyperv1.NodePool, bootImage BootImage, ...) (*capikubevirt.KubevirtMachineTemplateSpec, error)
- func PlatformValidation(nodePool *hyperv1.NodePool) error
- type BootImage
- type BootImageNamer
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
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 ¶
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
}
Click to show internal directories.
Click to hide internal directories.