Added
- New
pkg/filter
package with function which checks if the CR belongs to a cluster from a legacy non-CAPI release. Release is considered to be “legacy” if it contains azure-operator. - Unit tests for functions from
release
package. HttpHandlerFactory
for creating HTTP handlers that are using new webhook handlers.- Cluster webhook handler that replaces mutators and validators.
- AzureCluster webhook handler that replaces mutators and validators.
- MachinePool webhook handler that replaces mutators and validators.
- AzureMachinePool webhook handler that replaces mutators and validators.
- AzureMachine webhook handler that replaces mutators and validators.
- Spark webhook handler that replaces mutator.
- AzureClusterConfig webhook handler that replaces validator.
- AzureConfig webhook handler that replaces validator.
- CR filtering and webhook handler tests that use real CRs from real management clusters as test cases.
Changed
- Use caching client for
Releases
. - Upgrade
apiextensions/v2
->apiextensions/v3
. - Upgrade
k8sclient/v4
->k8sclient/v5
. - When importing
sigs.k8s.io/cluster-api/api/v1alpha3
usecapi
as package alias. - When importing
sigs.k8s.io/cluster-api/exp/api/v1alpha3
usecapiexp
as package alias. - When importing
sigs.k8s.io/cluster-api-provider-azure/api/v1alpha3
usecapz
as package alias. - When importing
sigs.k8s.io/cluster-api-provider-azure/exp/api/v1alpha3
usecapzexp
as package alias. - Remove package names from some file names.
- Move labels mutator functions to
pkg/mutator
. - Add new
WebhookHandler
interfaces for validation and mutation. - Prepare helm values to configuration management.
- Update architect-orb to v4.0.0.
- All webhook handlers (previously mutators and validators) are now created in
pkg/app
package. - The webhook handlers are not added to HTTP handler manually. Now for all handlers we check which wehbook handler interfaces are implementing, and according to that we add appropriate HTTP handlers.
- Resource SKU stub API has been moved to
pkg/unittests
since it was being used in multiple places.