Skip to content

Commit f77b6d0

Browse files
committed
⚠️ Deprecate reconcile.Result.Requeue
There is no good reason to use this setting, either an error or `RequeueAfter` should be used instead. Deprecate it to avoid confusion.
1 parent c5bb1d4 commit f77b6d0

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

pkg/reconcile/reconcile.go

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,17 @@ import (
2828

2929
// Result contains the result of a Reconciler invocation.
3030
type Result struct {
31-
// Requeue tells the Controller to requeue the reconcile key. Defaults to false.
31+
// Requeue tells the Controller to perform a ratelimited requeue
32+
// using the workqueues ratelimiter. Defaults to false.
33+
//
34+
// This setting is deprecated as it causes confusion and there is
35+
// no good reason to use it. When waiting for an external event to
36+
// happen, either the duration until it is supposed to happen or an
37+
// appropriate poll interval should be used, rather than an
38+
// interval emitted by a ratelimiter whose purpose it is to control
39+
// retry on error.
40+
//
41+
// Deprecated: Use `RequeueAfter` instead.
3242
Requeue bool
3343

3444
// RequeueAfter if greater than 0, tells the Controller to requeue the reconcile key after the Duration.

0 commit comments

Comments
 (0)