-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Deleted image streams are never removed from controller queue #15099
Deleted image streams are never removed from controller queue #15099
Conversation
If an image stream was deleted, it was never released from the queue.
Evaluated for origin test up to 0d0c686 |
@@ -146,14 +153,10 @@ func (c *ImageStreamController) getByKey(key string) (*imageapi.ImageStream, err | |||
} | |||
stream, err := c.lister.ImageStreams(namespace).Get(name) | |||
if apierrs.IsNotFound(err) { | |||
// TODO: this is not normal and should be refactored | |||
return nil, nil |
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.
Well here's your problem. Issue to do a more thorough refactor please.
I'd like the issue so we don't lose track. lgetm [merge] |
Evaluated for origin merge up to 0d0c686 |
continuous-integration/openshift-jenkins/test FAILURE (https://ci.openshift.redhat.com/jenkins/job/test_pull_request_origin/3016/) (Base Commit: 778ab8d) (PR Branch Commit: 0d0c686) |
continuous-integration/openshift-jenkins/merge FAILURE (https://ci.openshift.redhat.com/jenkins/job/merge_pull_request_origin/1253/) (Base Commit: 2d61a5b) (PR Branch Commit: 0d0c686) |
If an image stream was deleted, it was never released from the queue. This could lead to infinite queue growth.
[test] @deads2k