Skip to content

Commit ca12f14

Browse files
Address more comments
1 parent 5f1492f commit ca12f14

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

internal/contract/controlplane.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ func (c *ControlPlaneContract) IsUpgrading(obj *unstructured.Unstructured) (bool
241241
// - spec.replicas != status.replicas.
242242
// - spec.replicas != status.upToDateReplicas.
243243
// - spec.replicas != status.readyReplicas.
244-
// - status.unavailableReplicas > 0.
244+
// - spec.replicas != status.availableReplicas.
245245
// NOTE: this function is used only in E2E tests.
246246
func (c *ControlPlaneContract) IsScaling(obj *unstructured.Unstructured, contractVersion string) (bool, error) {
247247
desiredReplicas, err := c.Replicas().Get(obj)

internal/controllers/topology/cluster/conditions_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -830,9 +830,9 @@ func TestReconcileTopologyReconciledCondition(t *testing.T) {
830830
WithVersion("v1.22.0").
831831
WithStatus(clusterv1.MachineDeploymentStatus{
832832
Replicas: int32(1),
833-
ReadyReplicas: ptr.To[int32](2),
834-
UpToDateReplicas: ptr.To[int32](2),
835-
AvailableReplicas: ptr.To[int32](2),
833+
ReadyReplicas: ptr.To[int32](1),
834+
UpToDateReplicas: ptr.To[int32](1),
835+
AvailableReplicas: ptr.To[int32](1),
836836
}).
837837
Build(),
838838
},

0 commit comments

Comments
 (0)