helper

package
v0.33.2 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: Apache-2.0, MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func CollectDatacenters

func CollectDatacenters(region *api.RegionSpec) []string

CollectDatacenters collects all datacenters used in the region and its zones

func DecodeCloudProfileConfig

func DecodeCloudProfileConfig(config *runtime.RawExtension, fldPath *field.Path) (*vsphere.CloudProfileConfig, error)

func DecodeControlPlaneConfig

func DecodeControlPlaneConfig(cp *runtime.RawExtension, fldPath *field.Path) (*vsphere.ControlPlaneConfig, error)

func DecodeInfrastructureConfig

func DecodeInfrastructureConfig(infra *runtime.RawExtension, fldPath *field.Path) (*vsphere.InfrastructureConfig, error)

func FindImage

func FindImage(profileImages []api.MachineImages, imageName, imageVersion string) (string, string, error)

FindImage 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 []api.MachineImage, imageName, imageVersion string) (*api.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 FindRegion

func FindRegion(name string, cloudProfileConfig *api.CloudProfileConfig) *api.RegionSpec

FindRegion finds a RegionSpec by name in the clound profile config

func GetCloudProfileConfig

func GetCloudProfileConfig(cluster *controller.Cluster) (*vsphere.CloudProfileConfig, error)

func GetCloudProfileConfigFromProfile

func GetCloudProfileConfigFromProfile(profile *gardencorev1beta1.CloudProfile) (*vsphere.CloudProfileConfig, error)

func GetInfrastructureConfig

func GetInfrastructureConfig(cluster *controller.Cluster) (*vsphere.InfrastructureConfig, error)

InfrastructureConfigFromInfrastructure extracts the InfrastructureConfig from the ProviderConfig section of the given Infrastructure.

func GetInfrastructureStatus

func GetInfrastructureStatus(name string, extension *runtime.RawExtension) (*vsphere.InfrastructureStatus, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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