Support named pipe mounts for Windows containers#1511
Support named pipe mounts for Windows containers#1511mikebrow merged 1 commit intocontainerd:masterfrom
Conversation
|
Hi @kevpar. 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. |
|
Looks like appveyor broke on downloading mingw: |
|
/ok-to-test |
happens all the time.. |
|
@kevpar - Looks like one of the unit tests broke. Need to update the assumption there or else fix the code not sure didnt look into it. But good point, can you add a unit test for this in the same file as well for npipe on windows |
8e57b59 to
6841086
Compare
mikebrow
left a comment
There was a problem hiding this comment.
looking good just needs a couple tests
6841086 to
874afbb
Compare
|
@mikebrow I've added a test in container_create_windows_test.go, but since this mocks out the OS, it doesn't validate the filepath interactions. Is there anywhere else I should add a test? It looks like the integration tests don't currently run on Windows (unless I've missed something). |
|
Got an error that seems unrelated to my changes: I'll take a look at this tomorrow, just posting in case anyone knows why this was hit. |
I think your new test is fine for now. To validate the interactions.... Maybe improve the tests in cri-tools critest under pkg/validate/container*.go. |
let's see... BuildNameToCertificate seems to have been deprecated in go 1.14.. hmm... perhaps there is a golangci-lint already on the path that is a different version? doesn't matter pushing pr to ignore the deprecation lint error. |
|
kk fixed ci .. please rebase. |
Adds support to mount named pipes into Windows containers. This support already exists in hcsshim, so this change just passes them through correctly in cri. Named pipe mounts must start with "\\.\pipe\". Signed-off-by: Kevin Parsons <kevpar@microsoft.com>
874afbb to
210561a
Compare
|
Looks like all the tests pass now, so I think this is good to go. Thanks @mikebrow for your help! |
Adds support to mount named pipes into Windows containers. This support
already exists in hcsshim, so this change just passes them through
correctly in cri. Named pipe mounts must start with "\.\pipe".
Signed-off-by: Kevin Parsons kevpar@microsoft.com
Fixes containerd/containerd#4320