-
Notifications
You must be signed in to change notification settings - Fork 39
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
Handle DeletedFinalStateUnknown events form cache #1278
Conversation
Signed-off-by: Christian Kruse <[email protected]>
Signed-off-by: Christian Kruse <[email protected]>
c.logger.Error( | ||
"object received was DeletedFinalStateUnknown but did not contain api_v1.Pod", | ||
zap.Any("received", obj), | ||
) |
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.
is it logged often? We would like to avoid extensive error logging if this may be expected behavior
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.
If I understand correctly, this is more of a sanity check that shouldn't trigger an error in normal situation, as by design the cache.DeletedFinalStateUnknown
event should contain the object it pertains to.
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.
I needed to double check if this function should always get pod object and confirm that observer is run per object type
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.
Thanks a lot for this fix @c-kruse! 👏
Closes #1277