Skip to content

Commit 275fe91

Browse files
committed
[e2e framework] fix log output for node drain scale down
1 parent adb9a63 commit 275fe91

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/framework/controlplane_helpers.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,8 +383,9 @@ func ScaleAndWaitControlPlane(ctx context.Context, input ScaleAndWaitControlPlan
383383

384384
patchHelper, err := patch.NewHelper(input.ControlPlane, input.ClusterProxy.GetClient())
385385
Expect(err).ToNot(HaveOccurred())
386+
scaleBefore := pointer.Int32Deref(input.ControlPlane.Spec.Replicas, 0)
386387
input.ControlPlane.Spec.Replicas = pointer.Int32Ptr(input.Replicas)
387-
log.Logf("Scaling controlplane %s/%s from %v to %v replicas", input.ControlPlane.Namespace, input.ControlPlane.Name, input.ControlPlane.Spec.Replicas, input.Replicas)
388+
log.Logf("Scaling controlplane %s/%s from %v to %v replicas", input.ControlPlane.Namespace, input.ControlPlane.Name, scaleBefore, input.Replicas)
388389
Expect(patchHelper.Patch(ctx, input.ControlPlane)).To(Succeed())
389390

390391
log.Logf("Waiting for correct number of replicas to exist")

0 commit comments

Comments
 (0)