-
Notifications
You must be signed in to change notification settings - Fork 65
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
Set a maximum amount of time to wait for an image to be pulled #550
Conversation
after seeing ErrImagePull.
/gcbrun |
Pull Request Test Coverage Report for Build 9993408083Details
💛 - Coveralls |
@@ -14,13 +14,18 @@ import ( | |||
log "k8s.io/klog/v2" | |||
) | |||
|
|||
// MaxPullTime is how long we will give a pod to start after seeing | |||
// ErrImagePull. | |||
var MaxPullTime = time.Minute * 15 |
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.
15 minutes seems generous, but I suppose it's better than the current situation where it waits indefinitely!
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 made it public so it can be turned into a flag :-)
We have tests that fail if they take more than an hour. I decide 15 minutes was sufficient to a) it really probably will never succeed and b) short enough that it won't accidentally timeout a test.
UPDATE 2: I had opened the "Details" link along side the check. It was of very little help. Looking at the diffs I see where the blank like was (not at the end of a file). Pushed the commit to remove that one newline. UPDATE: It appears lint decided to start passing. I am not sure why lint is complaining about an empty line. The only files whose last line is empty or consists solely of whitespace are:
None of those are Go files. |
The presubmit seems to be failing in |
Looking at the "details" report of very little help.
after seeing ErrImagePull.