-
Notifications
You must be signed in to change notification settings - Fork 1.3k
executor: allow network providers #556
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
Conversation
1f5a929
to
0f85581
Compare
if err1 := pw.Close(); err == nil { | ||
err = err1 | ||
} | ||
_ = err |
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.
?
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.
Didn't notice this in original PR. Would you like a log in here. Don't think we can handle this error.
@@ -65,6 +69,10 @@ func New(opt Opt) (executor.Executor, error) { | |||
|
|||
root := opt.Root | |||
|
|||
if err := setSubReaper(); err != 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.
is this specific to runcexecutor?
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.
This is needed for the new Wait()
in runcexecutor to work properly.
forwardIO.release() | ||
|
||
defer func() { | ||
go func() { |
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.
why goroutine?
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.
To return the result back to the solver faster. As this pr introduces new process invocations that were not needed before and therefore makes running a container slower.
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 but needs rebase
0f85581
to
3282631
Compare
Signed-off-by: Kunal Kushwaha <[email protected]> Signed-off-by: Tonis Tiigi <[email protected]>
Signed-off-by: Tonis Tiigi <[email protected]>
3282631
to
f8dd602
Compare
@AkihiroSuda ok to merge? |
I separated out part of the work done by @kunalkushwaha in #309
This only adds the changes made to the executors and the new network provider interface so should be safe to merge. I will use this for bridge networking in moby integration similar way as the cni PR does.
@kunalkushwaha @AkihiroSuda