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 FindKeyStoneCACert(keyStoneURLs []api.KeyStoneURL, keystoneCABundle *string, region string) *string
- func FindKeyStoneURL(keyStoneURLs []api.KeyStoneURL, keystoneURL, region string) (string, error)
- func FindMachineImage(machineImages []api.MachineImage, name, version, architecture 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 InfrastructureConfigFromRawExtension(providerConfig *runtime.RawExtension) (*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 ( // KnownCodes maps Gardener error codes to respective regex. KnownCodes = map[gardencorev1beta1.ErrorCode]func(string) bool{ gardencorev1beta1.ErrorInfraUnauthenticated: unauthenticatedRegexp.MatchString, gardencorev1beta1.ErrorInfraUnauthorized: unauthorizedRegexp.MatchString, gardencorev1beta1.ErrorInfraQuotaExceeded: quotaExceededRegexp.MatchString, gardencorev1beta1.ErrorInfraRateLimitsExceeded: rateLimitsExceededRegexp.MatchString, gardencorev1beta1.ErrorInfraDependencies: dependenciesRegexp.MatchString, gardencorev1beta1.ErrorRetryableInfraDependencies: retryableDependenciesRegexp.MatchString, gardencorev1beta1.ErrorInfraResourcesDepleted: resourcesDepletedRegexp.MatchString, gardencorev1beta1.ErrorConfigurationProblem: configurationProblemRegexp.MatchString, gardencorev1beta1.ErrorRetryableConfigurationProblem: retryableConfigurationProblemRegexp.MatchString, } )
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, architecture 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 FindKeyStoneCACert ¶ added in v1.32.0
func FindKeyStoneCACert(keyStoneURLs []api.KeyStoneURL, keystoneCABundle *string, region string) *string
FindKeyStoneCACert takes a list of keystone URLs and tries to find the first entry whose region matches with the given region and returns the CA cert for this region. If no such entry is found then it tries to use the non-regional value.
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, architecture 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 InfrastructureConfigFromRawExtension ¶ added in v1.33.0
func InfrastructureConfigFromRawExtension(providerConfig *runtime.RawExtension) (*api.InfrastructureConfig, error)
InfrastructureConfigFromRawExtension extracts the InfrastructureConfig from the ProviderConfig.
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.