-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Skip manifest changes if item is in exponential backoff #225
Conversation
@@ -0,0 +1,61 @@ | |||
/* | |||
Copyright 2023. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copyright 2023. | |
Copyright 2023 The Operator-SDK Authors. |
crthandler.EventHandler | ||
} | ||
|
||
// RequeueFilter wraps the EventHandler and skips the event if it was requeued for the given object |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// RequeueFilter wraps the EventHandler and skips the event if it was requeued for the given object | |
// RequeueFilter wraps the EventHandler but skips the event if it was requeued for the given object. |
} | ||
|
||
func (q *delegatingQueue) Add(item interface{}) { | ||
if q.RateLimitingInterface.NumRequeues(item) > 0 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The documentation is rather terse on exact semantics of NumRequeues
, and what exactly is considered to be a requeue, so this looks scary to me. For example, does it mean errors will never be retried (apart from the periodic multiple-hour resync)?
PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Closing as stale. Please re-open if necessary. |
Fixes pt. 2 in #224
Filter manifest changes when controller has entered exponential backoff. This prevents any further updates from being made after the rollback.