Documentation ¶
Index ¶
- Variables
- func BackupConfigFromBackupBucket(backupBucket *extensionsv1alpha1.BackupBucket) (api.BackupBucketConfig, error)
- func CloudProfileConfigFromCluster(cluster *controller.Cluster) (*api.CloudProfileConfig, error)
- func FindAvailabilitySetByPurpose(availabilitySets []api.AvailabilitySet, purpose api.Purpose) (*api.AvailabilitySet, error)
- func FindDomainCountByRegion(domainCounts []api.DomainCount, region string) (int32, error)
- func FindImageFromCloudProfile(cloudProfileConfig *api.CloudProfileConfig, imageName, imageVersion string, ...) (*api.MachineImage, error)
- func FindMachineImage(machineImages []api.MachineImage, name, version string, architecture *string) (*api.MachineImage, error)
- func FindRouteTableByPurpose(routeTables []api.RouteTable, purpose api.Purpose) (*api.RouteTable, error)
- func FindSecurityGroupByPurpose(securityGroups []api.SecurityGroup, purpose api.Purpose) (*api.SecurityGroup, error)
- func FindSubnetByPurposeAndZone(subnets []api.Subnet, purpose api.Purpose, zone *string) (int, *api.Subnet, error)
- func HasShootVmoAlphaAnnotation(shootAnnotations map[string]string) bool
- func InfrastructureConfigFromInfrastructure(infra *extensionsv1alpha1.Infrastructure) (*api.InfrastructureConfig, error)
- func InfrastructureStateFromRaw(raw *runtime.RawExtension) (*api.InfrastructureState, error)
- func InfrastructureStatusFromInfrastructure(infra *extensionsv1alpha1.Infrastructure) (*api.InfrastructureStatus, error)
- func InfrastructureStatusFromRaw(raw *runtime.RawExtension) (*api.InfrastructureStatus, error)
- func InfrastructureZoneToString(zone int32) string
- func IsUsingSingleSubnetLayout(config *api.InfrastructureConfig) bool
- func IsVmoRequired(infrastructureStatus *api.InfrastructureStatus) bool
Constants ¶
This section is empty.
Variables ¶
var ( // Scheme is a scheme with the types relevant for Azure actuators. Scheme *runtime.Scheme // InfrastructureStateTypeMeta is the TypeMeta of the Azure InfrastructureStatus InfrastructureStateTypeMeta = metav1.TypeMeta{ APIVersion: apiv1alpha1.SchemeGroupVersion.String(), Kind: "InfrastructureState", } )
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, } )
Functions ¶
func BackupConfigFromBackupBucket ¶ added in v1.43.0
func BackupConfigFromBackupBucket(backupBucket *extensionsv1alpha1.BackupBucket) (api.BackupBucketConfig, error)
BackupConfigFromBackupBucket decodes the provider specific config from a given BackupBucket object.
func CloudProfileConfigFromCluster ¶
func CloudProfileConfigFromCluster(cluster *controller.Cluster) (*api.CloudProfileConfig, error)
CloudProfileConfigFromCluster decodes the provider specific cloud profile configuration for a cluster
func FindAvailabilitySetByPurpose ¶
func FindAvailabilitySetByPurpose(availabilitySets []api.AvailabilitySet, purpose api.Purpose) (*api.AvailabilitySet, error)
FindAvailabilitySetByPurpose takes a list of availability sets 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 FindDomainCountByRegion ¶
func FindDomainCountByRegion(domainCounts []api.DomainCount, region string) (int32, error)
FindDomainCountByRegion takes a region and the domain counts and finds the count for the given region.
func FindImageFromCloudProfile ¶
func FindImageFromCloudProfile(cloudProfileConfig *api.CloudProfileConfig, imageName, imageVersion string, 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, architecture and version. If it cannot be found then an error is returned.
func FindMachineImage ¶
func FindMachineImage(machineImages []api.MachineImage, name, version string, architecture *string) (*api.MachineImage, error)
FindMachineImage takes a list of machine images and tries to find the first entry whose name, version, architecture and zone matches with the given name, version, and zone. If no such entry is found then an error will be returned.
func FindRouteTableByPurpose ¶
func FindRouteTableByPurpose(routeTables []api.RouteTable, purpose api.Purpose) (*api.RouteTable, error)
FindRouteTableByPurpose takes a list of route tables 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 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 FindSubnetByPurposeAndZone ¶ added in v1.25.0
func FindSubnetByPurposeAndZone(subnets []api.Subnet, purpose api.Purpose, zone *string) (int, *api.Subnet, error)
FindSubnetByPurposeAndZone takes a list of subnets and tries to find the first entry whose purpose matches with the given purpose. Optionally, if the zone argument is not nil, the Zone field of a candidate subnet must match that value. FindSubnetByPurposeAndZone returns the index of the subnet in the array and the subnet object. If no such entry is found then an error will be returned.
func HasShootVmoAlphaAnnotation ¶ added in v1.18.0
HasShootVmoAlphaAnnotation determines if the passed Shoot annotations contain instruction to use VMO.
func InfrastructureConfigFromInfrastructure ¶
func InfrastructureConfigFromInfrastructure(infra *extensionsv1alpha1.Infrastructure) (*api.InfrastructureConfig, error)
InfrastructureConfigFromInfrastructure extracts the InfrastructureConfig from the ProviderConfig section of the given Infrastructure.
func InfrastructureStateFromRaw ¶ added in v1.40.0
func InfrastructureStateFromRaw(raw *runtime.RawExtension) (*api.InfrastructureState, error)
InfrastructureStateFromRaw extracts the state from the Infrastructure. If no state was available, it returns a "zero" value InfrastructureState object.
func InfrastructureStatusFromInfrastructure ¶ added in v1.8.4
func InfrastructureStatusFromInfrastructure(infra *extensionsv1alpha1.Infrastructure) (*api.InfrastructureStatus, error)
InfrastructureStatusFromInfrastructure extracts the InfrastructureStatus from the ProviderStatus section of the given Infrastructure. If the providerConfig is missing from the status, it will return a zero-value InfrastructureStatus.
func InfrastructureStatusFromRaw ¶ added in v1.23.0
func InfrastructureStatusFromRaw(raw *runtime.RawExtension) (*api.InfrastructureStatus, error)
InfrastructureStatusFromRaw extracts the InfrastructureStatus from the ProviderStatus section of the given Infrastructure.
func InfrastructureZoneToString ¶ added in v1.25.0
InfrastructureZoneToString translates the zone from the string format used in Gardener core objects to the int32 format used by the Azure provider extension.
func IsUsingSingleSubnetLayout ¶ added in v1.25.0
func IsUsingSingleSubnetLayout(config *api.InfrastructureConfig) bool
IsUsingSingleSubnetLayout returns true if the infrastructure configuration is using a network setup with a single subnet.
func IsVmoRequired ¶ added in v1.18.0
func IsVmoRequired(infrastructureStatus *api.InfrastructureStatus) bool
IsVmoRequired determines if VMO is required.
Types ¶
This section is empty.