Documentation ¶
Index ¶
Constants ¶
const (
// CreatedByLabel label is used as a marker for VMs that are managed by Fedora CR
CreatedByLabel = "apis.guest.fedora/created-by"
)
Variables ¶
This section is empty.
Functions ¶
func AddContainerDisk ¶
func AddContainerDisk(vm *v1.VirtualMachine, image string)
AddContainerDisk extends virtual machine with disk and volume based on a given image TODO: This should be replaced with DataVolume
func AddNoCloudDiskWitUserData ¶
func AddNoCloudDiskWitUserData(vm *v1.VirtualMachine, data string)
AddNoCloudDiskWitUserData adds Cloud-Init data source to a given virtual machine
func AddVmPodNetwork ¶
func AddVmPodNetwork(vm *v1.VirtualMachine)
AddVmPodNetwork adds a default pod network to the given vm
func GetFedoraImage ¶
GetFedoraImage returns the image for Fedora based on the required version TODO: add webhook validation for the existance if an image for the specific version TODO: implement mapping between the OS version to the image
func GetVirtualMachine ¶
func GetVirtualMachine(cr *guestv1alpha1.Fedora) *v1.VirtualMachine
GetVirtualMachine creates a VirtualMachine instance based on the given spec provided by the CR. The VirtualMachine will be created under the given namespace with the provided name and specification. It returns a reference to the created VirtualMachine.
Types ¶
This section is empty.