Skip to content

Commit f5111c0

Browse files
committed
Fix deprecation lint errors and don't deprecate ready
Signed-off-by: William Yao <william2000yao@gmail.com>
1 parent 30f49a6 commit f5111c0

28 files changed

Lines changed: 21 additions & 52 deletions

api/v1beta1/azureasomanagedcluster_types.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ type AzureASOManagedClusterSpec struct {
4545
type AzureASOManagedClusterStatus struct {
4646
// Ready represents whether or not the cluster has been provisioned and is ready. It fulfills Cluster
4747
// API's cluster infrastructure provider contract.
48-
// Deprecated: Use status.initialization.provisioned instead.
4948
//+optional
5049
Ready bool `json:"ready"`
5150

api/v1beta1/azureasomanagedcontrolplane_types.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,11 @@ type AzureASOManagedControlPlaneSpec struct {
3333
type AzureASOManagedControlPlaneStatus struct {
3434
// Initialized represents whether or not the API server has been provisioned. It fulfills Cluster API's
3535
// control plane provider contract. For AKS, this is equivalent to `ready`.
36-
// Deprecated: Use status.initialization.controlPlaneInitialized instead.
3736
//+optional
3837
Initialized bool `json:"initialized"`
3938

4039
// Ready represents whether or not the API server is ready to receive requests. It fulfills Cluster API's
4140
// control plane provider contract. For AKS, this is equivalent to `initialized`.
42-
// Deprecated: Use status.initialization.controlPlaneInitialized instead.
4341
//+optional
4442
Ready bool `json:"ready"`
4543

api/v1beta1/azureasomanagedmachinepool_types.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ type AzureASOManagedMachinePoolStatus struct {
4242

4343
// Ready represents whether or not the infrastructure is ready to be used. It fulfills Cluster API's
4444
// machine pool infrastructure provider contract.
45-
// Deprecated: Use status.initialization.provisioned instead.
4645
//+optional
4746
Ready bool `json:"ready"`
4847

api/v1beta1/azurecluster_types.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ type AzureClusterStatus struct {
6868
FailureDomains clusterv1beta1.FailureDomains `json:"failureDomains,omitempty"`
6969

7070
// Ready is true when the provider resource is ready.
71-
// Deprecated: Use status.initialization.provisioned instead.
7271
// +optional
7372
Ready bool `json:"ready"`
7473

api/v1beta1/azuremachine_types.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,6 @@ type SystemAssignedIdentityRole struct {
195195
// AzureMachineStatus defines the observed state of AzureMachine.
196196
type AzureMachineStatus struct {
197197
// Ready is true when the provider resource is ready.
198-
// Deprecated: Use status.initialization.provisioned instead.
199198
// +optional
200199
Ready bool `json:"ready"`
201200

api/v1beta1/azuremanagedcluster_types.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ type AzureManagedClusterSpec struct {
3434
// AzureManagedClusterStatus defines the observed state of AzureManagedCluster.
3535
type AzureManagedClusterStatus struct {
3636
// Ready is true when the provider resource is ready.
37-
// Deprecated: Use status.initialization.provisioned instead.
3837
// +optional
3938
Ready bool `json:"ready,omitempty"`
4039

api/v1beta1/azuremanagedcontrolplane_types.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,14 +413,12 @@ type AzureManagedControlPlaneStatus struct {
413413
AutoUpgradeVersion string `json:"autoUpgradeVersion,omitempty"`
414414

415415
// Ready is true when the provider resource is ready.
416-
// Deprecated: Use status.initialization.controlPlaneInitialized instead.
417416
// +optional
418417
Ready bool `json:"ready,omitempty"`
419418

420419
// Initialized is true when the control plane is available for initial contact.
421420
// This may occur before the control plane is fully ready.
422421
// In the AzureManagedControlPlane implementation, these are identical.
423-
// Deprecated: Use status.initialization.controlPlaneInitialized instead.
424422
// +optional
425423
Initialized bool `json:"initialized,omitempty"`
426424

api/v1beta1/azuremanagedmachinepool_types.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,6 @@ type Taints []Taint
452452
// AzureManagedMachinePoolStatus defines the observed state of AzureManagedMachinePool.
453453
type AzureManagedMachinePoolStatus struct {
454454
// Ready is true when the provider resource is ready.
455-
// Deprecated: Use status.initialization.provisioned instead.
456455
// +optional
457456
Ready bool `json:"ready"`
458457

azure/scope/machine.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -602,12 +602,12 @@ func (m *MachineScope) SetNotReady() {
602602

603603
// SetFailureMessage sets the AzureMachine status failure message.
604604
func (m *MachineScope) SetFailureMessage(v error) {
605-
m.AzureMachine.Status.FailureMessage = ptr.To(v.Error())
605+
m.AzureMachine.Status.FailureMessage = ptr.To(v.Error()) //nolint:staticcheck // will be removed when failureReason/failureMessage are dropped
606606
}
607607

608608
// SetFailureReason sets the AzureMachine status failure reason.
609609
func (m *MachineScope) SetFailureReason(v string) {
610-
m.AzureMachine.Status.FailureReason = &v
610+
m.AzureMachine.Status.FailureReason = &v //nolint:staticcheck // will be removed when failureReason/failureMessage are dropped
611611
}
612612

613613
// SetConditionFalse sets the specified AzureMachine condition to false.

azure/scope/machinepool.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -639,12 +639,12 @@ func (m *MachinePoolScope) SetNotReady() {
639639

640640
// SetFailureMessage sets the AzureMachinePool status failure message.
641641
func (m *MachinePoolScope) SetFailureMessage(v error) {
642-
m.AzureMachinePool.Status.FailureMessage = ptr.To(v.Error())
642+
m.AzureMachinePool.Status.FailureMessage = ptr.To(v.Error()) //nolint:staticcheck // will be removed when failureReason/failureMessage are dropped
643643
}
644644

645645
// SetFailureReason sets the AzureMachinePool status failure reason.
646646
func (m *MachinePoolScope) SetFailureReason(v string) {
647-
m.AzureMachinePool.Status.FailureReason = &v
647+
m.AzureMachinePool.Status.FailureReason = &v //nolint:staticcheck // will be removed when failureReason/failureMessage are dropped
648648
}
649649

650650
// AdditionalTags merges AdditionalTags from the scope's AzureCluster and AzureMachinePool. If the same key is present in both,

0 commit comments

Comments
 (0)