Skip to content

Commit 99ed142

Browse files
committed
Add a comment to waiting for server claim
1 parent c4232e1 commit 99ed142

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

internal/controller/ironcoremetalmachine_controller.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -508,10 +508,11 @@ func (r *IroncoreMetalMachineReconciler) patchIroncoreMetalMachineProviderID(ctx
508508
}
509509

510510
func (r *IroncoreMetalMachineReconciler) setServerClaimOwnership(ctx context.Context, serverClaim *metalv1alpha1.ServerClaim, IPAddressClaims []*capiv1beta1.IPAddressClaim) error {
511+
// wait for the server claim to be visible in a cache
511512
err := wait.PollUntilContextTimeout(
512513
ctx,
513-
time.Millisecond*50,
514-
time.Millisecond*340,
514+
50*time.Millisecond,
515+
340*time.Millisecond,
515516
true,
516517
func(ctx context.Context) (bool, error) {
517518
if err := r.Get(ctx, client.ObjectKeyFromObject(serverClaim), serverClaim); err != nil {

0 commit comments

Comments
 (0)