Documentation ¶
Index ¶
- Variables
- func CloudProfileConfigFromCluster(cluster *controller.Cluster) (*api.CloudProfileConfig, error)
- func FindGwByPurpose(gws []api.Gw, purpose api.Purpose) (*api.Gw, error)
- func FindImageFromCloudProfile(cloudProfileConfig *api.CloudProfileConfig, ...) (*api.MachineImage, error)
- func FindMachineImage(machineImages []api.MachineImage, name, template, catalog string) (*api.MachineImage, error)
- func InfrastructureConfigFromInfrastructure(infra *extensionsv1alpha1.Infrastructure) (*api.InfrastructureConfig, error)
Constants ¶
This section is empty.
Variables ¶
var ( // Scheme is a scheme with the types relevant for OpenStack actuators. Scheme *runtime.Scheme )
Functions ¶
func CloudProfileConfigFromCluster ¶
func CloudProfileConfigFromCluster(cluster *controller.Cluster) (*api.CloudProfileConfig, error)
CloudProfileConfigFromCluster decodes the provider specific cloud profile configuration for a cluster
func FindGwByPurpose ¶
FindGwByPurpose takes a list of gateways and tries to find the first entry whose purpose matches with the given purpose. If no such entry is found then an error will be returned.
func FindImageFromCloudProfile ¶
func FindImageFromCloudProfile(cloudProfileConfig *api.CloudProfileConfig, imageName, imageCatalog, imageTemplate string) (*api.MachineImage, 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 in the desired cloud profile. If it cannot be found then an error is returned.
func FindMachineImage ¶
func FindMachineImage(machineImages []api.MachineImage, name, template, catalog 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 cloud profile. If no such entry is found then an error will be returned.
func InfrastructureConfigFromInfrastructure ¶
func InfrastructureConfigFromInfrastructure(infra *extensionsv1alpha1.Infrastructure) (*api.InfrastructureConfig, error)
InfrastructureConfigFromInfrastructure extracts the InfrastructureConfig from the ProviderConfig section of the given Infrastructure.
Types ¶
This section is empty.