feat add sandbox controler port forward#7509
feat add sandbox controler port forward#7509lengrongfu wants to merge 1 commit intocontainerd:mainfrom
Conversation
|
Hi @lengrongfu. Thanks for your PR. I'm waiting for a containerd member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
5aacf02 to
9b4a8d2
Compare
|
/ok-to-test |
|
/test pull-containerd-sandboxed-node-e2e |
|
|
||
| package podsandbox | ||
|
|
||
| import ( |
There was a problem hiding this comment.
I don't have window platform to test this.
And I am not sure that ENABLE_CRI_SANDBOXES is working.
Hopefully, we can make sure that Test is working before merging.
sandbox/controller.go
Outdated
| } | ||
|
|
||
| // PortForward is an interface to port forward sandboxes at runtime | ||
| type PortForward interface { |
There was a problem hiding this comment.
Is it necessary to have this interface exposed under the sandbox package? New functionality should be defined where they are used or in a package that owns the interface.
There was a problem hiding this comment.
don't need, use podsandbox.Controller imple PortForward method.
pkg/cri/sbserver/streaming.go
Outdated
| } | ||
| ctx := ctrdutil.NamespacedContext() | ||
| return s.c.portForward(ctx, podSandboxID, port, stream) | ||
| if pf, ok := s.c.sandboxController.(sandbox.PortForward); ok { |
There was a problem hiding this comment.
I think this needs to be updated.
We use c.getSandboxController to obtain controller interface.
Also shim controllers go throught containerd backend.
46fce43 to
6eaf711
Compare
Signed-off-by: rongfu.leng <[email protected]>
6eaf711 to
06e76eb
Compare
|
PR needs rebase. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
This pr is Sansbox API work in #7312. implemented an optional
PortForwardinterface