Skip to content

Commit

Permalink
Update documentdb 20240815, add MongodbUserDefinition (#4550)
Browse files Browse the repository at this point in the history
* Code generate

* Add samples

* Add tests

* Remove MongodbRoleDefinition

* Remove MongodbRoleDefinition test

* Re-execute task

* Fix test assertion

* Run and record mongodb test

* Update samples

* Add azureName to cosmosdb sql test & sample

* Execute and record cosmosdb sql test

* Fix samples

* Run mongo sql sample test

* Fix, run and record mongodb samples test

---------

Co-authored-by: Petre Popescu <[email protected]>
  • Loading branch information
petrepopescu21 and Petre Popescu authored Feb 4, 2025
1 parent 905b2cd commit 9311308
Show file tree
Hide file tree
Showing 256 changed files with 157,392 additions and 3,526 deletions.
21 changes: 21 additions & 0 deletions docs/hugo/content/reference/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,27 @@ These resource(s) are available for use in the current release of ASO. Different

To install the CRDs for these resources, your ASO configuration must include `documentdb.azure.com/*` as a one of the configured CRD patterns. See [CRD Management in ASO](https://azure.github.io/azure-service-operator/guide/crd-management/) for details on doing this for both [Helm](https://azure.github.io/azure-service-operator/guide/crd-management/#helm) and [YAML](https://azure.github.io/azure-service-operator/guide/crd-management/#yaml) based installations.

### Next Release

Development of these new resources is complete and they will be available in the next release of ASO.

| Resource | ARM Version | CRD Version | Supported From | Sample |
|--------------------------------------------|-------------|---------------|----------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| DatabaseAccount | 2024-08-15 | v1api20240815 | v2.12.0 | [View](https://github.com/Azure/azure-service-operator/tree/main/v2/samples/documentdb/mongodb/v1api20240815/v1api20240815_databaseaccount.yaml) |
| MongodbDatabase | 2024-08-15 | v1api20240815 | v2.12.0 | [View](https://github.com/Azure/azure-service-operator/tree/main/v2/samples/documentdb/mongodb/v1api20240815/v1api20240815_mongodbdatabase.yaml) |
| MongodbDatabaseCollection | 2024-08-15 | v1api20240815 | v2.12.0 | [View](https://github.com/Azure/azure-service-operator/tree/main/v2/samples/documentdb/mongodb/v1api20240815/v1api20240815_mongodbdatabasecollection.yaml) |
| MongodbDatabaseCollectionThroughputSetting | 2024-08-15 | v1api20240815 | v2.12.0 | [View](https://github.com/Azure/azure-service-operator/tree/main/v2/samples/documentdb/mongodb/v1api20240815/v1api20240815_mongodbdatabasecollectionthroughputsetting.yaml) |
| MongodbDatabaseThroughputSetting | 2024-08-15 | v1api20240815 | v2.12.0 | [View](https://github.com/Azure/azure-service-operator/tree/main/v2/samples/documentdb/mongodb/v1api20240815/v1api20240815_mongodbdatabasethroughputsetting.yaml) |
| MongodbUserDefinition | 2024-08-15 | v1api20240815 | v2.12.0 | [View](https://github.com/Azure/azure-service-operator/tree/main/v2/samples/documentdb/mongodb/v1api20240815/v1api20240815_mongodbuserdefinition.yaml) |
| SqlDatabase | 2024-08-15 | v1api20240815 | v2.12.0 | [View](https://github.com/Azure/azure-service-operator/tree/main/v2/samples/documentdb/sqldatabase/v1api20240815/v1api20240815_sqldatabase.yaml) |
| SqlDatabaseContainer | 2024-08-15 | v1api20240815 | v2.12.0 | [View](https://github.com/Azure/azure-service-operator/tree/main/v2/samples/documentdb/sqldatabase/v1api20240815/v1api20240815_sqldatabasecontainer.yaml) |
| SqlDatabaseContainerStoredProcedure | 2024-08-15 | v1api20240815 | v2.12.0 | [View](https://github.com/Azure/azure-service-operator/tree/main/v2/samples/documentdb/sqldatabase/v1api20240815/v1api20240815_sqldatabasecontainerstoredprocedure.yaml) |
| SqlDatabaseContainerThroughputSetting | 2024-08-15 | v1api20240815 | v2.12.0 | [View](https://github.com/Azure/azure-service-operator/tree/main/v2/samples/documentdb/sqldatabase/v1api20240815/v1api20240815_sqldatabasecontainerthroughputsetting.yaml) |
| SqlDatabaseContainerTrigger | 2024-08-15 | v1api20240815 | v2.12.0 | [View](https://github.com/Azure/azure-service-operator/tree/main/v2/samples/documentdb/sqldatabase/v1api20240815/v1api20240815_sqldatabasecontainertrigger.yaml) |
| SqlDatabaseContainerUserDefinedFunction | 2024-08-15 | v1api20240815 | v2.12.0 | [View](https://github.com/Azure/azure-service-operator/tree/main/v2/samples/documentdb/sqldatabase/v1api20240815/v1api20240815_sqldatabasecontaineruserdefinedfunction.yaml) |
| SqlDatabaseThroughputSetting | 2024-08-15 | v1api20240815 | v2.12.0 | [View](https://github.com/Azure/azure-service-operator/tree/main/v2/samples/documentdb/sqldatabase/v1api20240815/v1api20240815_sqldatabasethroughputsetting.yaml) |
| SqlRoleAssignment | 2024-08-15 | v1api20240815 | v2.12.0 | [View](https://github.com/Azure/azure-service-operator/tree/main/v2/samples/documentdb/sqldatabase/v1api20240815/v1api20240815_sqlroleassignment.yaml) |

### Released

These resource(s) are available for use in the current release of ASO. Different versions of a given resource reflect different versions of the Azure ARM API.
Expand Down
21 changes: 21 additions & 0 deletions docs/hugo/content/reference/documentdb/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,27 @@ no_list: true
---
To install the CRDs for these resources, your ASO configuration must include `documentdb.azure.com/*` as a one of the configured CRD patterns. See [CRD Management in ASO](https://azure.github.io/azure-service-operator/guide/crd-management/) for details on doing this for both [Helm](https://azure.github.io/azure-service-operator/guide/crd-management/#helm) and [YAML](https://azure.github.io/azure-service-operator/guide/crd-management/#yaml) based installations.

### Next Release

Development of these new resources is complete and they will be available in the next release of ASO.

| Resource | ARM Version | CRD Version | Supported From | Sample |
|--------------------------------------------|-------------|---------------|----------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| DatabaseAccount | 2024-08-15 | v1api20240815 | v2.12.0 | [View](https://github.com/Azure/azure-service-operator/tree/main/v2/samples/documentdb/mongodb/v1api20240815/v1api20240815_databaseaccount.yaml) |
| MongodbDatabase | 2024-08-15 | v1api20240815 | v2.12.0 | [View](https://github.com/Azure/azure-service-operator/tree/main/v2/samples/documentdb/mongodb/v1api20240815/v1api20240815_mongodbdatabase.yaml) |
| MongodbDatabaseCollection | 2024-08-15 | v1api20240815 | v2.12.0 | [View](https://github.com/Azure/azure-service-operator/tree/main/v2/samples/documentdb/mongodb/v1api20240815/v1api20240815_mongodbdatabasecollection.yaml) |
| MongodbDatabaseCollectionThroughputSetting | 2024-08-15 | v1api20240815 | v2.12.0 | [View](https://github.com/Azure/azure-service-operator/tree/main/v2/samples/documentdb/mongodb/v1api20240815/v1api20240815_mongodbdatabasecollectionthroughputsetting.yaml) |
| MongodbDatabaseThroughputSetting | 2024-08-15 | v1api20240815 | v2.12.0 | [View](https://github.com/Azure/azure-service-operator/tree/main/v2/samples/documentdb/mongodb/v1api20240815/v1api20240815_mongodbdatabasethroughputsetting.yaml) |
| MongodbUserDefinition | 2024-08-15 | v1api20240815 | v2.12.0 | [View](https://github.com/Azure/azure-service-operator/tree/main/v2/samples/documentdb/mongodb/v1api20240815/v1api20240815_mongodbuserdefinition.yaml) |
| SqlDatabase | 2024-08-15 | v1api20240815 | v2.12.0 | [View](https://github.com/Azure/azure-service-operator/tree/main/v2/samples/documentdb/sqldatabase/v1api20240815/v1api20240815_sqldatabase.yaml) |
| SqlDatabaseContainer | 2024-08-15 | v1api20240815 | v2.12.0 | [View](https://github.com/Azure/azure-service-operator/tree/main/v2/samples/documentdb/sqldatabase/v1api20240815/v1api20240815_sqldatabasecontainer.yaml) |
| SqlDatabaseContainerStoredProcedure | 2024-08-15 | v1api20240815 | v2.12.0 | [View](https://github.com/Azure/azure-service-operator/tree/main/v2/samples/documentdb/sqldatabase/v1api20240815/v1api20240815_sqldatabasecontainerstoredprocedure.yaml) |
| SqlDatabaseContainerThroughputSetting | 2024-08-15 | v1api20240815 | v2.12.0 | [View](https://github.com/Azure/azure-service-operator/tree/main/v2/samples/documentdb/sqldatabase/v1api20240815/v1api20240815_sqldatabasecontainerthroughputsetting.yaml) |
| SqlDatabaseContainerTrigger | 2024-08-15 | v1api20240815 | v2.12.0 | [View](https://github.com/Azure/azure-service-operator/tree/main/v2/samples/documentdb/sqldatabase/v1api20240815/v1api20240815_sqldatabasecontainertrigger.yaml) |
| SqlDatabaseContainerUserDefinedFunction | 2024-08-15 | v1api20240815 | v2.12.0 | [View](https://github.com/Azure/azure-service-operator/tree/main/v2/samples/documentdb/sqldatabase/v1api20240815/v1api20240815_sqldatabasecontaineruserdefinedfunction.yaml) |
| SqlDatabaseThroughputSetting | 2024-08-15 | v1api20240815 | v2.12.0 | [View](https://github.com/Azure/azure-service-operator/tree/main/v2/samples/documentdb/sqldatabase/v1api20240815/v1api20240815_sqldatabasethroughputsetting.yaml) |
| SqlRoleAssignment | 2024-08-15 | v1api20240815 | v2.12.0 | [View](https://github.com/Azure/azure-service-operator/tree/main/v2/samples/documentdb/sqldatabase/v1api20240815/v1api20240815_sqlroleassignment.yaml) |

### Released

These resource(s) are available for use in the current release of ASO. Different versions of a given resource reflect different versions of the Azure ARM API.
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
v1 "k8s.io/api/core/v1"
"sigs.k8s.io/controller-runtime/pkg/conversion"

documentdb "github.com/Azure/azure-service-operator/v2/api/documentdb/v1api20231115/storage"
documentdb "github.com/Azure/azure-service-operator/v2/api/documentdb/v1api20240815/storage"
"github.com/Azure/azure-service-operator/v2/internal/genericarmclient"
"github.com/Azure/azure-service-operator/v2/internal/resolver"
"github.com/Azure/azure-service-operator/v2/internal/set"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

. "github.com/onsi/gomega"

documentdb "github.com/Azure/azure-service-operator/v2/api/documentdb/v1api20231115/storage"
documentdb "github.com/Azure/azure-service-operator/v2/api/documentdb/v1api20240815/storage"
"github.com/Azure/azure-service-operator/v2/internal/reflecthelpers"
testreflect "github.com/Azure/azure-service-operator/v2/internal/testcommon/reflect"
)
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9311308

Please sign in to comment.