Skip to content

Commit c6c8fe0

Browse files
authored
Warning message added for deprecation of AzureManaged API (#5699)
1 parent 93c7990 commit c6c8fe0

12 files changed

+33
-3
lines changed

api/v1beta1/azuremanagedcluster_types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ type AzureManagedClusterStatus struct {
4545
// +kubebuilder:resource:path=azuremanagedclusters,scope=Namespaced,categories=cluster-api,shortName=amc
4646
// +kubebuilder:storageversion
4747
// +kubebuilder:subresource:status
48+
// +kubebuilder:deprecatedversion:warning="AzureManagedCluster and the AzureManaged API are deprecated. Please migrate to infrastructure.cluster.x-k8s.io/v1beta1 AzureASOManagedCluster and related AzureASOManaged resources instead."
4849

4950
// AzureManagedCluster is the Schema for the azuremanagedclusters API.
5051
type AzureManagedCluster struct {

api/v1beta1/azuremanagedclustertemplate_types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ type AzureManagedClusterTemplateSpec struct {
2828
// +kubebuilder:object:root=true
2929
// +kubebuilder:resource:path=azuremanagedclustertemplates,scope=Namespaced,categories=cluster-api,shortName=amct
3030
// +kubebuilder:storageversion
31+
// +kubebuilder:deprecatedversion:warning="AzureManagedClusterTemplate and the AzureManaged API are deprecated. Please migrate to infrastructure.cluster.x-k8s.io/v1beta1 AzureASOManagedClusterTemplate and related AzureASOManaged resources instead."
3132

3233
// AzureManagedClusterTemplate is the Schema for the AzureManagedClusterTemplates API.
3334
type AzureManagedClusterTemplate struct {

api/v1beta1/azuremanagedcontrolplane_types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -661,6 +661,7 @@ type AKSExtension struct {
661661
// +kubebuilder:resource:path=azuremanagedcontrolplanes,scope=Namespaced,categories=cluster-api,shortName=amcp
662662
// +kubebuilder:storageversion
663663
// +kubebuilder:subresource:status
664+
// +kubebuilder:deprecatedversion:warning="AzureManagedControlPlane and the AzureManaged API are deprecated. Please migrate to infrastructure.cluster.x-k8s.io/v1beta1 AzureASOManagedControlPlane and related AzureASOManaged resources instead."
664665

665666
// AzureManagedControlPlane is the Schema for the azuremanagedcontrolplanes API.
666667
type AzureManagedControlPlane struct {

api/v1beta1/azuremanagedcontrolplanetemplate_types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ type AzureManagedControlPlaneTemplateSpec struct {
2828
// +kubebuilder:object:root=true
2929
// +kubebuilder:resource:path=azuremanagedcontrolplanetemplates,scope=Namespaced,categories=cluster-api,shortName=amcpt
3030
// +kubebuilder:storageversion
31+
// +kubebuilder:deprecatedversion:warning="AzureManagedControlPlaneTemplate and the AzureManaged API are deprecated. Please migrate to infrastructure.cluster.x-k8s.io/v1beta1 AzureASOManagedControlPlaneTemplate and related AzureASOManaged resources instead."
3132

3233
// AzureManagedControlPlaneTemplate is the Schema for the AzureManagedControlPlaneTemplates API.
3334
type AzureManagedControlPlaneTemplate struct {

api/v1beta1/azuremanagedmachinepool_types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,7 @@ type AzureManagedMachinePoolStatus struct {
492492
// +kubebuilder:resource:path=azuremanagedmachinepools,scope=Namespaced,categories=cluster-api,shortName=ammp
493493
// +kubebuilder:storageversion
494494
// +kubebuilder:subresource:status
495+
// +kubebuilder:deprecatedversion:warning="AzureManagedMachinePool and the AzureManaged API are deprecated. Please migrate to infrastructure.cluster.x-k8s.io/v1beta1 AzureASOManagedMachinePool and related AzureASOManaged resources instead."
495496

496497
// AzureManagedMachinePool is the Schema for the azuremanagedmachinepools API.
497498
type AzureManagedMachinePool struct {

api/v1beta1/azuremanagedmachinepooltemplate_types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ type AzureManagedMachinePoolTemplateSpec struct {
2828
// +kubebuilder:object:root=true
2929
// +kubebuilder:resource:path=azuremanagedmachinepooltemplates,scope=Namespaced,categories=cluster-api,shortName=ammpt
3030
// +kubebuilder:storageversion
31+
// +kubebuilder:deprecatedversion:warning="AzureManagedMachinePoolTemplate and the AzureManaged API are deprecated. Please migrate to infrastructure.cluster.x-k8s.io/v1beta1 AzureASOManagedMachinePoolTemplate and related AzureASOManaged resources instead."
3132

3233
// AzureManagedMachinePoolTemplate is the Schema for the AzureManagedMachinePoolTemplates API.
3334
type AzureManagedMachinePoolTemplate struct {

config/crd/bases/infrastructure.cluster.x-k8s.io_azuremanagedclusters.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ spec:
3030
jsonPath: .metadata.creationTimestamp
3131
name: Age
3232
type: date
33+
deprecated: true
34+
deprecationWarning: AzureManagedCluster and the AzureManaged API are deprecated.
35+
Please migrate to infrastructure.cluster.x-k8s.io/v1beta1 AzureASOManagedCluster
36+
and related AzureASOManaged resources instead.
3337
name: v1beta1
3438
schema:
3539
openAPIV3Schema:

config/crd/bases/infrastructure.cluster.x-k8s.io_azuremanagedclustertemplates.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ spec:
1818
singular: azuremanagedclustertemplate
1919
scope: Namespaced
2020
versions:
21-
- name: v1beta1
21+
- deprecated: true
22+
deprecationWarning: AzureManagedClusterTemplate and the AzureManaged API are deprecated.
23+
Please migrate to infrastructure.cluster.x-k8s.io/v1beta1 AzureASOManagedClusterTemplate
24+
and related AzureASOManaged resources instead.
25+
name: v1beta1
2226
schema:
2327
openAPIV3Schema:
2428
description: AzureManagedClusterTemplate is the Schema for the AzureManagedClusterTemplates

config/crd/bases/infrastructure.cluster.x-k8s.io_azuremanagedcontrolplanes.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ spec:
4040
jsonPath: .metadata.creationTimestamp
4141
name: Age
4242
type: date
43+
deprecated: true
44+
deprecationWarning: AzureManagedControlPlane and the AzureManaged API are deprecated.
45+
Please migrate to infrastructure.cluster.x-k8s.io/v1beta1 AzureASOManagedControlPlane
46+
and related AzureASOManaged resources instead.
4347
name: v1beta1
4448
schema:
4549
openAPIV3Schema:

config/crd/bases/infrastructure.cluster.x-k8s.io_azuremanagedcontrolplanetemplates.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ spec:
1818
singular: azuremanagedcontrolplanetemplate
1919
scope: Namespaced
2020
versions:
21-
- name: v1beta1
21+
- deprecated: true
22+
deprecationWarning: AzureManagedControlPlaneTemplate and the AzureManaged API
23+
are deprecated. Please migrate to infrastructure.cluster.x-k8s.io/v1beta1 AzureASOManagedControlPlaneTemplate
24+
and related AzureASOManaged resources instead.
25+
name: v1beta1
2226
schema:
2327
openAPIV3Schema:
2428
description: AzureManagedControlPlaneTemplate is the Schema for the AzureManagedControlPlaneTemplates

0 commit comments

Comments
 (0)