Documentation ¶
Index ¶
- Variables
- func ApplyMachineClassCRDs(ctx context.Context, config *rest.Config) error
- func FindImageFromCloudProfile(cloudProfileConfig *apiskubevirt.CloudProfileConfig, ...) (string, error)
- func FindMachineImage(configImages []apiskubevirt.MachineImage, imageName, imageVersion string) (*apiskubevirt.MachineImage, error)
- func GetCloudProfileConfig(cloudProfile *gardencorev1beta1.CloudProfile) (*apiskubevirt.CloudProfileConfig, error)
- func GetControlPlaneConfig(cp *extensionsv1alpha1.ControlPlane) (*apiskubevirt.ControlPlaneConfig, error)
- func GetInfrastructureConfig(infra *extensionsv1alpha1.Infrastructure) (*apiskubevirt.InfrastructureConfig, error)
- func GetInfrastructureStatus(w *extensionsv1alpha1.Worker) (*apiskubevirt.InfrastructureStatus, error)
- func GetWorkerConfig(p *extensionsv1alpha1.WorkerPool) (*apiskubevirt.WorkerConfig, error)
- func GetWorkerStatus(w *extensionsv1alpha1.Worker) (*apiskubevirt.WorkerStatus, error)
Constants ¶
This section is empty.
Variables ¶
var ( // Scheme is a scheme with the types relevant for KubeVirt actuators. Scheme *runtime.Scheme )
Functions ¶
func ApplyMachineClassCRDs ¶
ApplyMachineClassCRDs applies the MachineClass CRD, currently, gardener does not apply MachineClass for OOT approach this function should be removed once it's fixed in Gardner
func FindImageFromCloudProfile ¶
func FindImageFromCloudProfile(cloudProfileConfig *apiskubevirt.CloudProfileConfig, imageName, imageVersion string) (string, error)
FindImageFromCloudProfile takes a list of machine images, and the desired image name and version. It tries to find the image with the given name and version. If it cannot be found then an error is returned.
func FindMachineImage ¶
func FindMachineImage(configImages []apiskubevirt.MachineImage, imageName, imageVersion string) (*apiskubevirt.MachineImage, error)
FindMachineImage takes a list of machine images and tries to find the first entry whose name, version, and zone matches with the given name, version, and zone. If no such entry is found then an error will be returned.
func GetCloudProfileConfig ¶
func GetCloudProfileConfig(cloudProfile *gardencorev1beta1.CloudProfile) (*apiskubevirt.CloudProfileConfig, error)
GetCloudProfileConfig extracts the CloudProfileConfig from the ProviderConfig section of the given CloudProfile.
func GetControlPlaneConfig ¶
func GetControlPlaneConfig(cp *extensionsv1alpha1.ControlPlane) (*apiskubevirt.ControlPlaneConfig, error)
GetControlPlaneConfig extracts the ControlPlaneConfig from the ProviderConfig section of the given ControlPlane.
func GetInfrastructureConfig ¶
func GetInfrastructureConfig(infra *extensionsv1alpha1.Infrastructure) (*apiskubevirt.InfrastructureConfig, error)
GetInfrastructureConfig extracts the InfrastructureConfig from the ProviderConfig section of the given Infrastructure.
func GetInfrastructureStatus ¶
func GetInfrastructureStatus(w *extensionsv1alpha1.Worker) (*apiskubevirt.InfrastructureStatus, error)
GetInfrastructureStatus extracts the InfrastructureStatus from the InfrastructureProviderStatus section of the given Worker.
func GetWorkerConfig ¶
func GetWorkerConfig(p *extensionsv1alpha1.WorkerPool) (*apiskubevirt.WorkerConfig, error)
GetWorkerConfig extracts the WorkerConfig from the ProviderConfig section of the given Worker.
func GetWorkerStatus ¶
func GetWorkerStatus(w *extensionsv1alpha1.Worker) (*apiskubevirt.WorkerStatus, error)
GetWorkerStatus extracts the WorkerStatus from the Status section of the given Worker.
Types ¶
This section is empty.