Documentation ¶
Overview ¶
Code generated by azure-service-operator-codegen. DO NOT EDIT. Copyright (c) Microsoft Corporation. Licensed under the MIT license.
Code generated by azure-service-operator-codegen. DO NOT EDIT. Copyright (c) Microsoft Corporation. Licensed under the MIT license.
Code generated by azure-service-operator-codegen. DO NOT EDIT. Copyright (c) Microsoft Corporation. Licensed under the MIT license.
Code generated by azure-service-operator-codegen. DO NOT EDIT. Copyright (c) Microsoft Corporation. Licensed under the MIT license.
Code generated by azure-service-operator-codegen. DO NOT EDIT. Copyright (c) Microsoft Corporation. Licensed under the MIT license.
Code generated by azure-service-operator-codegen. DO NOT EDIT. Copyright (c) Microsoft Corporation. Licensed under the MIT license.
Code generated by azure-service-operator-codegen. DO NOT EDIT. Copyright (c) Microsoft Corporation. Licensed under the MIT license.
Code generated by azure-service-operator-codegen. DO NOT EDIT. Copyright (c) Microsoft Corporation. Licensed under the MIT license.
Code generated by azure-service-operator-codegen. DO NOT EDIT. Copyright (c) Microsoft Corporation. Licensed under the MIT license.
Code generated by azure-service-operator-codegen. DO NOT EDIT. Copyright (c) Microsoft Corporation. Licensed under the MIT license.
Code generated by azure-service-operator-codegen. DO NOT EDIT. Copyright (c) Microsoft Corporation. Licensed under the MIT license.
Code generated by azure-service-operator-codegen. DO NOT EDIT. Copyright (c) Microsoft Corporation. Licensed under the MIT license.
Code generated by azure-service-operator-codegen. DO NOT EDIT. Copyright (c) Microsoft Corporation. Licensed under the MIT license.
Index ¶
- type DatabaseAccountExtension
- func (ext *DatabaseAccountExtension) ClassifyError(cloudError *genericarmclient.CloudError, apiVersion string, log logr.Logger, ...) (core.CloudErrorDetails, error)
- func (ext *DatabaseAccountExtension) ExportKubernetesSecrets(ctx context.Context, obj genruntime.MetaObject, ...) (*genruntime.KubernetesSecretExportResult, error)
- func (extension *DatabaseAccountExtension) GetExtendedResources() []genruntime.KubernetesResource
- func (ext *DatabaseAccountExtension) PreReconcileCheck(ctx context.Context, obj genruntime.MetaObject, owner genruntime.MetaObject, ...) (extensions.PreReconcileCheckResult, error)
- type MongodbDatabaseCollectionExtension
- type MongodbDatabaseCollectionThroughputSettingExtension
- type MongodbDatabaseExtension
- type MongodbDatabaseThroughputSettingExtension
- type SqlDatabaseContainerExtension
- type SqlDatabaseContainerStoredProcedureExtension
- type SqlDatabaseContainerThroughputSettingExtension
- type SqlDatabaseContainerTriggerExtension
- type SqlDatabaseContainerUserDefinedFunctionExtension
- type SqlDatabaseExtension
- type SqlDatabaseThroughputSettingExtension
- type SqlRoleAssignmentExtension
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DatabaseAccountExtension ¶
type DatabaseAccountExtension struct { }
func (*DatabaseAccountExtension) ClassifyError ¶
func (ext *DatabaseAccountExtension) ClassifyError( cloudError *genericarmclient.CloudError, apiVersion string, log logr.Logger, next extensions.ErrorClassifierFunc, ) (core.CloudErrorDetails, error)
ClassifyError evaluates the provided error, returning whether it is fatal or can be retried. A "ServiceUnavailable" error would usually be retryable, but in the case of DatabaseAccount, when coupled with a "high demand" message, it means that the region is capacity constrained and cannot have DatabseAccounts allocated. If we retry on this error CosmosDB will start returning a new BadRequest error stating DatabaseAccount is in a failed provisioning state because the previous attempt to create it was not successful. Please delete the previous instance before attempting to recreate this account." Since we can't retry anyway, we mark the original ServiceUnavailable error as fatal so the user has a clearer error message. cloudError is the error returned from ARM. apiVersion is the ARM API version used for the request. log is a logger than can be used for telemetry. next is the next implementation to call.
func (*DatabaseAccountExtension) ExportKubernetesSecrets ¶
func (ext *DatabaseAccountExtension) ExportKubernetesSecrets( ctx context.Context, obj genruntime.MetaObject, additionalSecrets set.Set[string], armClient *genericarmclient.GenericClient, log logr.Logger, ) (*genruntime.KubernetesSecretExportResult, error)
func (*DatabaseAccountExtension) GetExtendedResources ¶
func (extension *DatabaseAccountExtension) GetExtendedResources() []genruntime.KubernetesResource
GetExtendedResources Returns the KubernetesResource slice for Resource versions
func (*DatabaseAccountExtension) PreReconcileCheck ¶
func (ext *DatabaseAccountExtension) PreReconcileCheck( ctx context.Context, obj genruntime.MetaObject, owner genruntime.MetaObject, resourceResolver *resolver.Resolver, armClient *genericarmclient.GenericClient, log logr.Logger, next extensions.PreReconcileCheckFunc, ) (extensions.PreReconcileCheckResult, error)
PreReconcileCheck does a pre-reconcile check to see if the resource is in a state that can be reconciled. ARM resources should implement this to avoid reconciliation attempts that cannot possibly succeed. Returns ProceedWithReconcile if the reconciliation should go ahead. Returns BlockReconcile and a human-readable reason if the reconciliation should be skipped. ctx is the current operation context. obj is the resource about to be reconciled. The resource's State will be freshly updated. kubeClient allows access to the cluster for any required queries. armClient allows access to ARM for any required queries. log is the logger for the current operation. next is the next (nested) implementation to call.
type MongodbDatabaseCollectionExtension ¶
type MongodbDatabaseCollectionExtension struct { }
func (*MongodbDatabaseCollectionExtension) GetExtendedResources ¶
func (extension *MongodbDatabaseCollectionExtension) GetExtendedResources() []genruntime.KubernetesResource
GetExtendedResources Returns the KubernetesResource slice for Resource versions
type MongodbDatabaseCollectionThroughputSettingExtension ¶
type MongodbDatabaseCollectionThroughputSettingExtension struct { }
func (*MongodbDatabaseCollectionThroughputSettingExtension) GetExtendedResources ¶
func (extension *MongodbDatabaseCollectionThroughputSettingExtension) GetExtendedResources() []genruntime.KubernetesResource
GetExtendedResources Returns the KubernetesResource slice for Resource versions
type MongodbDatabaseExtension ¶
type MongodbDatabaseExtension struct { }
func (*MongodbDatabaseExtension) ClassifyError ¶
func (extension *MongodbDatabaseExtension) ClassifyError( cloudError *genericarmclient.CloudError, _ string, _ logr.Logger, next extensions.ErrorClassifierFunc, ) (core.CloudErrorDetails, error)
ClassifyError evaluates the provided error, returning whether it is fatal or can be retried. A BadRequest (400) is normally fatal, but Mongodb Databases may return 400 if database creation is attempted while the parent account is still being created, so we make BadRequest retryable for this case. cloudError is the error returned from ARM. next is the next implementation to call.
func (*MongodbDatabaseExtension) GetExtendedResources ¶
func (extension *MongodbDatabaseExtension) GetExtendedResources() []genruntime.KubernetesResource
GetExtendedResources Returns the KubernetesResource slice for Resource versions
type MongodbDatabaseThroughputSettingExtension ¶
type MongodbDatabaseThroughputSettingExtension struct { }
func (*MongodbDatabaseThroughputSettingExtension) GetExtendedResources ¶
func (extension *MongodbDatabaseThroughputSettingExtension) GetExtendedResources() []genruntime.KubernetesResource
GetExtendedResources Returns the KubernetesResource slice for Resource versions
type SqlDatabaseContainerExtension ¶
type SqlDatabaseContainerExtension struct { }
func (*SqlDatabaseContainerExtension) GetExtendedResources ¶
func (extension *SqlDatabaseContainerExtension) GetExtendedResources() []genruntime.KubernetesResource
GetExtendedResources Returns the KubernetesResource slice for Resource versions
type SqlDatabaseContainerStoredProcedureExtension ¶
type SqlDatabaseContainerStoredProcedureExtension struct { }
func (*SqlDatabaseContainerStoredProcedureExtension) GetExtendedResources ¶
func (extension *SqlDatabaseContainerStoredProcedureExtension) GetExtendedResources() []genruntime.KubernetesResource
GetExtendedResources Returns the KubernetesResource slice for Resource versions
type SqlDatabaseContainerThroughputSettingExtension ¶
type SqlDatabaseContainerThroughputSettingExtension struct { }
func (*SqlDatabaseContainerThroughputSettingExtension) GetExtendedResources ¶
func (extension *SqlDatabaseContainerThroughputSettingExtension) GetExtendedResources() []genruntime.KubernetesResource
GetExtendedResources Returns the KubernetesResource slice for Resource versions
type SqlDatabaseContainerTriggerExtension ¶
type SqlDatabaseContainerTriggerExtension struct { }
func (*SqlDatabaseContainerTriggerExtension) GetExtendedResources ¶
func (extension *SqlDatabaseContainerTriggerExtension) GetExtendedResources() []genruntime.KubernetesResource
GetExtendedResources Returns the KubernetesResource slice for Resource versions
type SqlDatabaseContainerUserDefinedFunctionExtension ¶
type SqlDatabaseContainerUserDefinedFunctionExtension struct { }
func (*SqlDatabaseContainerUserDefinedFunctionExtension) GetExtendedResources ¶
func (extension *SqlDatabaseContainerUserDefinedFunctionExtension) GetExtendedResources() []genruntime.KubernetesResource
GetExtendedResources Returns the KubernetesResource slice for Resource versions
type SqlDatabaseExtension ¶
type SqlDatabaseExtension struct { }
func (*SqlDatabaseExtension) ClassifyError ¶
func (extension *SqlDatabaseExtension) ClassifyError( cloudError *genericarmclient.CloudError, _ string, _ logr.Logger, next extensions.ErrorClassifierFunc, ) (core.CloudErrorDetails, error)
ClassifyError evaluates the provided error, returning whether it is fatal or can be retried. A BadRequest (400) is normally fatal, but CosmosDB Databases may return 400 if database creation is attempted while the parent account is still being created, so we make BadRequest retryable for this case. cloudError is the error returned from ARM. next is the next implementation to call.
func (*SqlDatabaseExtension) GetExtendedResources ¶
func (extension *SqlDatabaseExtension) GetExtendedResources() []genruntime.KubernetesResource
GetExtendedResources Returns the KubernetesResource slice for Resource versions
type SqlDatabaseThroughputSettingExtension ¶
type SqlDatabaseThroughputSettingExtension struct { }
func (*SqlDatabaseThroughputSettingExtension) GetExtendedResources ¶
func (extension *SqlDatabaseThroughputSettingExtension) GetExtendedResources() []genruntime.KubernetesResource
GetExtendedResources Returns the KubernetesResource slice for Resource versions
type SqlRoleAssignmentExtension ¶
type SqlRoleAssignmentExtension struct { }
func (*SqlRoleAssignmentExtension) ClassifyError ¶
func (extension *SqlRoleAssignmentExtension) ClassifyError( cloudError *genericarmclient.CloudError, _ string, _ logr.Logger, next extensions.ErrorClassifierFunc, ) (core.CloudErrorDetails, error)
ClassifyError evaluates the provided error, returning whether it is fatal or can be retried. A BadRequest (400) is normally fatal, but CosmosDB SQL Role Assignments may return 400 if role creation is attempted before AAD has had a chance to propagate the identity being used. We make BadRequest retryable for this case. cloudError is the error returned from ARM. next is the next implementation to call.
func (*SqlRoleAssignmentExtension) GetExtendedResources ¶
func (extension *SqlRoleAssignmentExtension) GetExtendedResources() []genruntime.KubernetesResource
GetExtendedResources Returns the KubernetesResource slice for Resource versions
Source Files ¶
- database_account_extension_types_gen.go
- database_account_extensions.go
- mongodb_database_collection_extension_types_gen.go
- mongodb_database_collection_throughput_setting_extension_types_gen.go
- mongodb_database_extension.go
- mongodb_database_extension_types_gen.go
- mongodb_database_throughput_setting_extension_types_gen.go
- sql_database_container_extension_types_gen.go
- sql_database_container_stored_procedure_extension_types_gen.go
- sql_database_container_throughput_setting_extension_types_gen.go
- sql_database_container_trigger_extension_types_gen.go
- sql_database_container_user_defined_function_extension_types_gen.go
- sql_database_extension_types.go
- sql_database_extension_types_gen.go
- sql_database_throughput_setting_extension_types_gen.go
- sql_role_assignment_extension_types.go
- sql_role_assignment_extension_types_gen.go