Skip to content

Commit 3dd182d

Browse files
Add support for Microsoft.AppConfiguration 2024-06-01 KeyValue, Replica, and Snapshot resources with samples and tests (#4948)
* Initial plan * Add ConfigurationStore v1api20240601 and initial child resource configuration Co-authored-by: theunrepentantgeek <[email protected]> * Successfully generate AppConfiguration v1api20240601 child resources: KeyValue, Replica, Snapshot Co-authored-by: theunrepentantgeek <[email protected]> * Add sample YAML files for AppConfiguration v1api20240601 resources Co-authored-by: theunrepentantgeek <[email protected]> * Regenerate structure.txt files after running full code generation build Co-authored-by: theunrepentantgeek <[email protected]> * Restructure samples and add CRUD test and KubernetesSecretExporter support for v1api20240601 Co-authored-by: theunrepentantgeek <[email protected]> * Simplify ConfigurationStore extensions to only work with hub version Co-authored-by: theunrepentantgeek <[email protected]> * Fix compilation errors * Fix tests * Update azure-arm.yaml * Move for new versioning * Move samples * Update indexes * Update index files * Fix sample selection bug * Record sample * Fix samples * Fix test and rerecord * Redact app configuration keys * Code gardening * Update recording * Tidy sample * Remove SystemData from spec * Make tests more general * Fix merge * Reformat code --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: theunrepentantgeek <[email protected]> Co-authored-by: Bevan Arps <[email protected]>
1 parent 47af64b commit 3dd182d

File tree

77 files changed

+31309
-1048
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+31309
-1048
lines changed

docs/hugo/content/reference/_index.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,17 @@ These are older versions of resources still available for use in the current rel
112112

113113
To install the CRDs for these resources, your ASO configuration must include `appconfiguration.azure.com/*` as 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.
114114

115+
### Next Release
116+
117+
Development of these new resources is complete and they will be available in the next release of ASO.
118+
119+
| Resource | ARM Version | CRD Version | Supported From | Sample |
120+
|--------------------|-------------|-------------|----------------|-------------------------------------------------------------------------------------------------------------------------------------------|
121+
| ConfigurationStore | 2024-06-01 | v20240601 | v2.17.0 | [View](https://github.com/Azure/azure-service-operator/tree/main/v2/samples/appconfiguration/v20240601/v20240601_configurationstore.yaml) |
122+
| KeyValue | 2024-06-01 | v20240601 | v2.17.0 | [View](https://github.com/Azure/azure-service-operator/tree/main/v2/samples/appconfiguration/v20240601/v20240601_keyvalue.yaml) |
123+
| Replica | 2024-06-01 | v20240601 | v2.17.0 | [View](https://github.com/Azure/azure-service-operator/tree/main/v2/samples/appconfiguration/v20240601/v20240601_replica.yaml) |
124+
| Snapshot | 2024-06-01 | v20240601 | v2.17.0 | [View](https://github.com/Azure/azure-service-operator/tree/main/v2/samples/appconfiguration/v20240601/v20240601_snapshot.yaml) |
125+
115126
### Released
116127

117128
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.

docs/hugo/content/reference/appconfiguration/_index.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,17 @@ no_list: true
55
---
66
To install the CRDs for these resources, your ASO configuration must include `appconfiguration.azure.com/*` as 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.
77

8+
### Next Release
9+
10+
Development of these new resources is complete and they will be available in the next release of ASO.
11+
12+
| Resource | ARM Version | CRD Version | Supported From | Sample |
13+
|--------------------|-------------|-------------|----------------|-------------------------------------------------------------------------------------------------------------------------------------------|
14+
| ConfigurationStore | 2024-06-01 | v20240601 | v2.17.0 | [View](https://github.com/Azure/azure-service-operator/tree/main/v2/samples/appconfiguration/v20240601/v20240601_configurationstore.yaml) |
15+
| KeyValue | 2024-06-01 | v20240601 | v2.17.0 | [View](https://github.com/Azure/azure-service-operator/tree/main/v2/samples/appconfiguration/v20240601/v20240601_keyvalue.yaml) |
16+
| Replica | 2024-06-01 | v20240601 | v2.17.0 | [View](https://github.com/Azure/azure-service-operator/tree/main/v2/samples/appconfiguration/v20240601/v20240601_replica.yaml) |
17+
| Snapshot | 2024-06-01 | v20240601 | v2.17.0 | [View](https://github.com/Azure/azure-service-operator/tree/main/v2/samples/appconfiguration/v20240601/v20240601_snapshot.yaml) |
18+
819
### Released
920

1021
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.

v2/api/appconfiguration/customizations/configuration_store_extension_types_gen.go

Lines changed: 6 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

v2/api/appconfiguration/customizations/configuration_store_extensions.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import (
1717
v1 "k8s.io/api/core/v1"
1818
"sigs.k8s.io/controller-runtime/pkg/conversion"
1919

20-
storage "github.com/Azure/azure-service-operator/v2/api/appconfiguration/v1api20220501/storage"
20+
storage "github.com/Azure/azure-service-operator/v2/api/appconfiguration/v20240601/storage"
2121
"github.com/Azure/azure-service-operator/v2/internal/genericarmclient"
2222
"github.com/Azure/azure-service-operator/v2/internal/set"
2323
"github.com/Azure/azure-service-operator/v2/internal/util/to"

v2/api/appconfiguration/customizations/configuration_store_extensions_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111

1212
. "github.com/onsi/gomega"
1313

14-
appconfiguration "github.com/Azure/azure-service-operator/v2/api/appconfiguration/v1api20220501/storage"
14+
appconfiguration "github.com/Azure/azure-service-operator/v2/api/appconfiguration/v20240601/storage"
1515
"github.com/Azure/azure-service-operator/v2/internal/reflecthelpers"
1616
testreflect "github.com/Azure/azure-service-operator/v2/internal/testcommon/reflect"
1717
)

v2/api/appconfiguration/customizations/key_value_extension_types_gen.go

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

v2/api/appconfiguration/customizations/replica_extension_types_gen.go

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

v2/api/appconfiguration/customizations/snapshot_extension_types_gen.go

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

v2/api/appconfiguration/customizations/structure.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,9 @@ github.com/Azure/azure-service-operator/v2/api/appconfiguration/customizations
33
------------------------------------------------------------------------------
44
ConfigurationStoreExtension: Object (0 properties)
55

6+
KeyValueExtension: Object (0 properties)
7+
8+
ReplicaExtension: Object (0 properties)
9+
10+
SnapshotExtension: Object (0 properties)
11+

v2/api/appconfiguration/v1api20220501/arm/configuration_store_spec_types_gen.go

Lines changed: 0 additions & 60 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)