Documentation ¶
Index ¶
- Variables
- func CollectDatacenters(region *api.RegionSpec) []string
- func DecodeCloudProfileConfig(config *runtime.RawExtension, fldPath *field.Path) (*vsphere.CloudProfileConfig, error)
- func DecodeControlPlaneConfig(cp *runtime.RawExtension, fldPath *field.Path) (*vsphere.ControlPlaneConfig, error)
- func DecodeInfrastructureConfig(infra *runtime.RawExtension, fldPath *field.Path) (*vsphere.InfrastructureConfig, error)
- func FindImage(profileImages []api.MachineImages, imageName, imageVersion string) (string, string, error)
- func FindMachineImage(configImages []api.MachineImage, imageName, imageVersion string) (*api.MachineImage, error)
- func FindRegion(name string, cloudProfileConfig *api.CloudProfileConfig) *api.RegionSpec
- func GetCloudProfileConfig(cluster *controller.Cluster) (*vsphere.CloudProfileConfig, error)
- func GetCloudProfileConfigFromProfile(profile *gardencorev1beta1.CloudProfile) (*vsphere.CloudProfileConfig, error)
- func GetControlPlaneConfig(cluster *controller.Cluster) (*vsphere.ControlPlaneConfig, error)
- func GetInfrastructureConfig(cluster *controller.Cluster) (*vsphere.InfrastructureConfig, error)
- func GetInfrastructureStatus(name string, extension *runtime.RawExtension) (*vsphere.InfrastructureStatus, error)
Constants ¶
This section is empty.
Variables ¶
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 GetControlPlaneConfig ¶
func GetControlPlaneConfig(cluster *controller.Cluster) (*vsphere.ControlPlaneConfig, 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.