-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Initial GRPC shims support #8052
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
|
Skipping CI for Draft Pull Request. |
b4810da to
197aa93
Compare
|
/test pull-containerd-sandboxed-node-e2e |
c779519 to
1863842
Compare
dcantah
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.
Approach makes sense, LGTM
| resp, err := g.client.State(ctx, &v3.StateRequest{ | ||
| ID: request.GetID(), | ||
| ExecID: request.GetExecID(), | ||
| }) |
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.
Minor nit after looking again, but for all of these that don't return an emptypb we should probably just return nil for the actual responses if we got an error from the original call (g.client.State in this example) to be idiomatic
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.
Once we release 1.7 and switch to v3, we can clean this code (as there will be no need to convert between v2 and v3 contracts), so it'll be a lot slimmer (like sandbox/bridge.go)
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.
Fine with me then
|
containerd/runtime/v2/shim/shim.go Lines 279 to 284 in f82ae8a
|
|
Just trialed this, we'll need at least |
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
|
Rebased against main and fixed merge conflicts. |
dcantah
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 again, dummy shim I have makes it to TaskShutdownRequest just fine if that's anything to go by 🤷
Uh oh!
There was an error while loading. Please reload this page.