Documentation ¶
Index ¶
- Variables
- func CloudProfileConfigFromCluster(cluster *controller.Cluster) (*api.CloudProfileConfig, error)
- func FindFloatingPool(floatingPools []api.FloatingPool, floatingPoolNamePattern, region string, ...) (*api.FloatingPool, error)
- func FindImageFromCloudProfile(cloudProfileConfig *api.CloudProfileConfig, ...) (*api.MachineImage, error)
- func FindKeyStoneURL(keyStoneURLs []api.KeyStoneURL, keystoneURL, region string) (string, error)
- func FindMachineImage(machineImages []api.MachineImage, name, version string) (*api.MachineImage, error)
- func FindSecurityGroupByPurpose(securityGroups []api.SecurityGroup, purpose api.Purpose) (*api.SecurityGroup, error)
- func FindSubnetByPurpose(subnets []api.Subnet, purpose api.Purpose) (*api.Subnet, error)
- func InfrastructureConfigFromInfrastructure(infra *extensionsv1alpha1.Infrastructure) (*api.InfrastructureConfig, error)
- func InfrastructureStatusFromRaw(raw *runtime.RawExtension) (*api.InfrastructureStatus, error)
- func WorkerConfigFromRawExtension(raw *runtime.RawExtension) (*api.WorkerConfig, 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 FindFloatingPool ¶ added in v1.17.0
func FindFloatingPool(floatingPools []api.FloatingPool, floatingPoolNamePattern, region string, domain *string) (*api.FloatingPool, error)
FindFloatingPool receives a list of floating pools and tries to find the best match for a given `floatingPoolNamePattern` considering constraints like `region` and `domain`. If no matching floating pool was found then an error will be returned.
func FindImageFromCloudProfile ¶
func FindImageFromCloudProfile(cloudProfileConfig *api.CloudProfileConfig, imageName, imageVersion, regionName 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 FindKeyStoneURL ¶
func FindKeyStoneURL(keyStoneURLs []api.KeyStoneURL, keystoneURL, region string) (string, error)
FindKeyStoneURL takes a list of keystone URLs and tries to find the first entry whose region matches with the given region. If no such entry is found then it tries to use the non-regional keystone URL. If this is not specified then an error will be returned.
func FindMachineImage ¶
func FindMachineImage(machineImages []api.MachineImage, name, version 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 FindSecurityGroupByPurpose ¶
func FindSecurityGroupByPurpose(securityGroups []api.SecurityGroup, purpose api.Purpose) (*api.SecurityGroup, error)
FindSecurityGroupByPurpose takes a list of security groups 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 FindSubnetByPurpose ¶
FindSubnetByPurpose takes a list of subnets 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 InfrastructureConfigFromInfrastructure ¶
func InfrastructureConfigFromInfrastructure(infra *extensionsv1alpha1.Infrastructure) (*api.InfrastructureConfig, error)
InfrastructureConfigFromInfrastructure extracts the InfrastructureConfig from the ProviderConfig section of the given Infrastructure.
func InfrastructureStatusFromRaw ¶ added in v1.27.0
func InfrastructureStatusFromRaw(raw *runtime.RawExtension) (*api.InfrastructureStatus, error)
InfrastructureStatusFromRaw extracts the InfrastructureStatus from the ProviderStatus section of the given Infrastructure.
func WorkerConfigFromRawExtension ¶ added in v1.14.0
func WorkerConfigFromRawExtension(raw *runtime.RawExtension) (*api.WorkerConfig, error)
WorkerConfigFromRawExtension extracts the provider specific configuration for a worker pool.
Types ¶
This section is empty.