diff --git a/exp/api/v1beta2/conditions_consts.go b/exp/api/v1beta2/conditions_consts.go index 2d052fae53..8a01da61df 100644 --- a/exp/api/v1beta2/conditions_consts.go +++ b/exp/api/v1beta2/conditions_consts.go @@ -105,7 +105,7 @@ const ( const ( // RosaMachinePoolReadyCondition condition reports on the successful reconciliation of rosa machinepool. - RosaMachinePoolReadyCondition clusterv1.ConditionType = "RosaMchinePoolReady" + RosaMachinePoolReadyCondition clusterv1.ConditionType = "RosaMachinePoolReady" // RosaMachinePoolUpgradingCondition condition reports whether ROSAMachinePool is upgrading or not. RosaMachinePoolUpgradingCondition clusterv1.ConditionType = "RosaMchinePoolUpgrading" diff --git a/exp/controllers/rosamachinepool_controller.go b/exp/controllers/rosamachinepool_controller.go index 41a8f15848..ff221c893a 100644 --- a/exp/controllers/rosamachinepool_controller.go +++ b/exp/controllers/rosamachinepool_controller.go @@ -155,7 +155,7 @@ func (r *ROSAMachinePoolReconciler) Reconcile(ctx context.Context, req ctrl.Requ if !controlPlane.Status.Ready && controlPlane.ObjectMeta.DeletionTimestamp.IsZero() { log.Info("Control plane is not ready yet") - err := machinePoolScope.RosaMchinePoolReadyFalse(expinfrav1.WaitingForRosaControlPlaneReason, "") + err := machinePoolScope.RosaMachinePoolReadyFalse(expinfrav1.WaitingForRosaControlPlaneReason, "") return ctrl.Result{}, err } diff --git a/pkg/cloud/scope/rosamachinepool.go b/pkg/cloud/scope/rosamachinepool.go index 00d480ca3e..be914fb0cf 100644 --- a/pkg/cloud/scope/rosamachinepool.go +++ b/pkg/cloud/scope/rosamachinepool.go @@ -189,9 +189,9 @@ func (s *RosaMachinePoolScope) Namespace() string { return s.Cluster.Namespace } -// RosaMchinePoolReadyFalse marks the ready condition false using warning if error isn't +// RosaMachinePoolReadyFalse marks the ready condition false using warning if error isn't // empty. -func (s *RosaMachinePoolScope) RosaMchinePoolReadyFalse(reason string, err string) error { +func (s *RosaMachinePoolScope) RosaMachinePoolReadyFalse(reason string, err string) error { severity := clusterv1.ConditionSeverityWarning if err == "" { severity = clusterv1.ConditionSeverityInfo