You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/libs/status.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -181,3 +181,10 @@ The `ReconcileResult` that is passed into the status updater is expected to cont
181
181
- If this is nil, `Object` will be used instead.
182
182
- If this is non-nil, it must not point to the same instance as `Object` - use the `DeepCopy()` function to create a different instance.
183
183
- All changes to `Object`'s status that are not part to `OldObject`'s status will be included in the patch during the status update. This can be used to inject custom changes to the status into the status update (in addition to the `WithCustomUpdateFunc` mentioned above).
184
+
-`SmartRequeue` contains the requeuing information for the [smart requeuing logic](./smartrequeue.md).
185
+
- This field has no effect unless `WithSmartRequeue` has been called on the status updater builder.
186
+
- If `ReconcileError` is not nil, the value has no effect and the smart requeue error logic is used instead.
187
+
- Valid values are:
188
+
- `Backoff` to requeue the object with an increasing backoff
189
+
- `Reset` to requeue the object, but reset the backoff interval to its minimum
Copy file name to clipboardExpand all lines: pkg/controller/status_updater.go
+5-4Lines changed: 5 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -138,9 +138,8 @@ const (
138
138
// If the 'Result' field in the ReconcileResult has a non-zero RequeueAfter value set, that one is used if it is earlier than the one from smart requeue or if "NoRequeue" has been specified.
139
139
// This function only has an effect if the Object in the ReconcileResult is not nil, the smart requeue store is not nil, and the action is one of the known values.
140
140
// Also, if a reconciliation error occurred, the requeue interval will be reset, but no requeueAfter duration will be set, because controller-runtime will take care of requeuing the object anyway.
0 commit comments