helper

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2020 License: Apache-2.0, MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Scheme is a scheme with the types relevant for KubeVirt actuators.
	Scheme *runtime.Scheme
)

Functions

func ApplyMachineClassCRDs

func ApplyMachineClassCRDs(ctx context.Context, config *rest.Config) error

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

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

GetWorkerConfig extracts the WorkerConfig from the ProviderConfig section of the given Worker.

func GetWorkerStatus

GetWorkerStatus extracts the WorkerStatus from the Status section of the given Worker.

Types

This section is empty.

Jump to

Keyboard shortcuts

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