-
Notifications
You must be signed in to change notification settings - Fork 336
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
fix: endless retry if namespace doesn't exist #882
Conversation
Signed-off-by: Ling Samuel <lingsamuelgrace@gmail.com>
Codecov Report
@@ Coverage Diff @@
## master #882 +/- ##
==========================================
- Coverage 32.07% 32.03% -0.04%
==========================================
Files 71 71
Lines 7739 7748 +9
==========================================
Hits 2482 2482
- Misses 4982 4991 +9
Partials 275 275
Continue to review full report at Codecov.
|
Signed-off-by: Ling Samuel <lingsamuelgrace@gmail.com>
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.
LGTM
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.
LGTM
zap.String("event_type", event.Type.String()), | ||
zap.String("namespace", event.Object.(string)), | ||
) | ||
c.workqueue.Forget(event) |
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.
So here is the point :)
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.
yep
Signed-off-by: Ling Samuel lingsamuelgrace@gmail.com
Type of change:
Fixes #816
What this PR does / why we need it:
I couldn't find a stable way to reproduce this issue without changing the code, so there is no e2e test.
The only case this PR addresses is the error not found. Please add other cases if necessary.
If anyone else wants to reproduce this issue, please postpone the Create/Update events (example: wrap the function in a goroutine and add a time.Sleep at the beginning).