-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Runtime cleanup #5368
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
Runtime cleanup #5368
Conversation
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
To ease code readability Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
|
Build succeeded.
|
Test Results 13 files 219 suites 47m 26s ⏱️ Results for commit b83d04f. |
mikebrow
left a comment
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
| // Tasks returns all the current tasks for the runtime. | ||
| // Any container runs at most one task at a time. | ||
| Tasks(context.Context, bool) ([]Task, error) | ||
| Tasks(ctx context.Context, all bool) ([]Task, error) |
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.
Naming the flag all is confusing since Tasks() returns all tasks regardless of the flag. Seems the flag means "from all namespaces".
kzys
left a comment
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. One non-blocking comment.
estesp
left a comment
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
A few minor runtime changes:
ShimStartparams into a separate structureshim.StartOpts. This will make easier adding new options and keep backward compatibility. For instance, turns out we pass shim runtime options via Stdin, but don't really use those in the shim itself. I think we should expose this option in 1.6.