Skip to content

Commit

Permalink
Add newer version of EventHub (#4499)
Browse files Browse the repository at this point in the history
* Update azure-arm.yaml

* Update generated files

* Update extensions

* Update tests

* Add recordings for tests

* Add samples

* Add recordings for samples

* Exclude locally built binaries
  • Loading branch information
theunrepentantgeek authored Jan 19, 2025
1 parent c772d1b commit 09b30e5
Show file tree
Hide file tree
Showing 96 changed files with 42,717 additions and 1,303 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,5 @@ hack/tools

# goenv condiguration
.go-version
v2/controller
v2/cmd/asoctl/asoctl
12 changes: 12 additions & 0 deletions docs/hugo/content/reference/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,18 @@ 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 `eventhub.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 |
|--------------------------------------|-------------|---------------|----------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Namespace | 2024-01-01 | v1api20240101 | v2.12.0 | [View](https://github.com/Azure/azure-service-operator/tree/main/v2/samples/eventhub/v1api20240101/v1api20240101_namespace.yaml) |
| NamespacesAuthorizationRule | 2024-01-01 | v1api20240101 | v2.12.0 | [View](https://github.com/Azure/azure-service-operator/tree/main/v2/samples/eventhub/v1api20240101/v1api20240101_namespacesauthorizationrule.yaml) |
| NamespacesEventhub | 2024-01-01 | v1api20240101 | v2.12.0 | [View](https://github.com/Azure/azure-service-operator/tree/main/v2/samples/eventhub/v1api20240101/v1api20240101_namespaceseventhub.yaml) |
| NamespacesEventhubsAuthorizationRule | 2024-01-01 | v1api20240101 | v2.12.0 | [View](https://github.com/Azure/azure-service-operator/tree/main/v2/samples/eventhub/v1api20240101/v1api20240101_namespaceseventhubsauthorizationrule.yaml) |
| NamespacesEventhubsConsumerGroup | 2024-01-01 | v1api20240101 | v2.12.0 | [View](https://github.com/Azure/azure-service-operator/tree/main/v2/samples/eventhub/v1api20240101/v1api20240101_namespaceseventhubsconsumergroup.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
12 changes: 12 additions & 0 deletions docs/hugo/content/reference/eventhub/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,18 @@ no_list: true
---
To install the CRDs for these resources, your ASO configuration must include `eventhub.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 |
|--------------------------------------|-------------|---------------|----------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Namespace | 2024-01-01 | v1api20240101 | v2.12.0 | [View](https://github.com/Azure/azure-service-operator/tree/main/v2/samples/eventhub/v1api20240101/v1api20240101_namespace.yaml) |
| NamespacesAuthorizationRule | 2024-01-01 | v1api20240101 | v2.12.0 | [View](https://github.com/Azure/azure-service-operator/tree/main/v2/samples/eventhub/v1api20240101/v1api20240101_namespacesauthorizationrule.yaml) |
| NamespacesEventhub | 2024-01-01 | v1api20240101 | v2.12.0 | [View](https://github.com/Azure/azure-service-operator/tree/main/v2/samples/eventhub/v1api20240101/v1api20240101_namespaceseventhub.yaml) |
| NamespacesEventhubsAuthorizationRule | 2024-01-01 | v1api20240101 | v2.12.0 | [View](https://github.com/Azure/azure-service-operator/tree/main/v2/samples/eventhub/v1api20240101/v1api20240101_namespaceseventhubsauthorizationrule.yaml) |
| NamespacesEventhubsConsumerGroup | 2024-01-01 | v1api20240101 | v2.12.0 | [View](https://github.com/Azure/azure-service-operator/tree/main/v2/samples/eventhub/v1api20240101/v1api20240101_namespaceseventhubsconsumergroup.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
2 changes: 1 addition & 1 deletion v2/api/eventhub/customizations/namespace_extension.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
v1 "k8s.io/api/core/v1"
"sigs.k8s.io/controller-runtime/pkg/conversion"

"github.com/Azure/azure-service-operator/v2/api/eventhub/v1api20211101/storage"
"github.com/Azure/azure-service-operator/v2/api/eventhub/v1api20240101/storage"
"github.com/Azure/azure-service-operator/v2/internal/genericarmclient"
"github.com/Azure/azure-service-operator/v2/internal/set"
"github.com/Azure/azure-service-operator/v2/internal/util/to"
Expand Down
4 changes: 3 additions & 1 deletion v2/api/eventhub/customizations/namespace_extension_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

. "github.com/onsi/gomega"

eventhub "github.com/Azure/azure-service-operator/v2/api/eventhub/v1api20211101/storage"
eventhub "github.com/Azure/azure-service-operator/v2/api/eventhub/v1api20240101/storage"
"github.com/Azure/azure-service-operator/v2/internal/reflecthelpers"
testreflect "github.com/Azure/azure-service-operator/v2/internal/testcommon/reflect"
)
Expand All @@ -30,6 +30,8 @@ func Test_NamespaceSecretsSpecified_AllSecretsSpecifiedAllSecretsReturned(t *tes
},
},
}

// If this doesn't compile, check that the version of eventhub imported is the hub version
secretNames := namespaceSecretsSpecified(obj)
expectedTags := reflecthelpers.GetJSONTags(reflect.TypeOf(eventhub.NamespaceOperatorSecrets{}))
expectedTags.Remove("$propertyBag")
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 @@ -16,7 +16,7 @@ import (
v1 "k8s.io/api/core/v1"
"sigs.k8s.io/controller-runtime/pkg/conversion"

"github.com/Azure/azure-service-operator/v2/api/eventhub/v1api20211101/storage"
"github.com/Azure/azure-service-operator/v2/api/eventhub/v1api20240101/storage"
"github.com/Azure/azure-service-operator/v2/internal/genericarmclient"
"github.com/Azure/azure-service-operator/v2/internal/set"
"github.com/Azure/azure-service-operator/v2/internal/util/to"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

. "github.com/onsi/gomega"

eventhub "github.com/Azure/azure-service-operator/v2/api/eventhub/v1api20211101/storage"
eventhub "github.com/Azure/azure-service-operator/v2/api/eventhub/v1api20240101/storage"
"github.com/Azure/azure-service-operator/v2/internal/reflecthelpers"
testreflect "github.com/Azure/azure-service-operator/v2/internal/testcommon/reflect"
)
Expand All @@ -30,6 +30,8 @@ func Test_NamespaceAuthorizationRuleSecretsSpecified_AllSecretsSpecifiedAllSecre
},
},
}

// If this doesn't compile, check that the version of eventhub imported is the hub version
secretNames := namespacesAuthorizationRuleSecretsSpecified(obj)
expectedTags := reflecthelpers.GetJSONTags(reflect.TypeOf(eventhub.NamespacesAuthorizationRuleOperatorSecrets{}))
expectedTags.Remove("$propertyBag")
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.

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

"github.com/Azure/azure-service-operator/v2/api/eventhub/v1api20211101/storage"
"github.com/Azure/azure-service-operator/v2/api/eventhub/v1api20240101/storage"
"github.com/Azure/azure-service-operator/v2/internal/genericarmclient"
"github.com/Azure/azure-service-operator/v2/internal/set"
"github.com/Azure/azure-service-operator/v2/internal/util/to"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

. "github.com/onsi/gomega"

eventhub "github.com/Azure/azure-service-operator/v2/api/eventhub/v1api20211101/storage"
eventhub "github.com/Azure/azure-service-operator/v2/api/eventhub/v1api20240101/storage"
"github.com/Azure/azure-service-operator/v2/internal/reflecthelpers"
testreflect "github.com/Azure/azure-service-operator/v2/internal/testcommon/reflect"
)
Expand All @@ -30,6 +30,8 @@ func Test_NamespaceEventHubsAuthorizationRuleSecretsSpecified_AllSecretsSpecifie
},
},
}

// If this doesn't compile, check that the version of eventhub imported is the hub version
secretNames := namespacesEventHubAuthorizationRuleSecretsSpecified(obj)
expectedTags := reflecthelpers.GetJSONTags(reflect.TypeOf(eventhub.NamespacesEventhubsAuthorizationRuleOperatorSecrets{}))
expectedTags.Remove("$propertyBag")
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.

Loading

0 comments on commit 09b30e5

Please sign in to comment.