Derek McGowan
e59f64792b
Move oci to pkg/oci
...
Signed-off-by: Derek McGowan <derek@mcg.dev >
2024-01-17 09:55:48 -08:00
Derek McGowan
44a836c9b5
Move errdefs to pkg/errdefs
...
Signed-off-by: Derek McGowan <derek@mcg.dev >
2024-01-17 09:54:45 -08:00
Derek McGowan
b0c3d00e98
Move cio to pkg/cio
...
Signed-off-by: Derek McGowan <derek@mcg.dev >
2024-01-17 09:54:27 -08:00
Kirtana Ashok
f261969507
Move certain debug logs to trace logs
...
Signed-off-by: Kirtana Ashok <kiashok@microsoft.com >
2024-01-10 14:43:54 -08:00
Phil Estes
740717673f
Merge pull request #9317 from jsturtevant/fix-sbserver-windows
...
CRI: Handle ArgsEscaped for new Sb Server by clearing commandline in spec
2023-11-02 14:45:39 +00:00
James Sturtevant
0ffc3e9873
Handle ArgsEscaped for new Sb Server
...
The PR https://github.com/containerd/containerd/pull/8198 fixed this for CRI but missed clearing the commandline in the forked SB server. This simply adds that back in
Signed-off-by: James Sturtevant <jsturtevant@gmail.com >
2023-11-01 12:06:07 -07:00
Derek McGowan
261e01c2ac
Move client to subpackage
...
Signed-off-by: Derek McGowan <derek@mcg.dev >
2023-11-01 10:37:00 -07:00
Derek McGowan
5fdf55e493
Update go module to github.com/containerd/containerd/v2
...
Signed-off-by: Derek McGowan <derek@mcg.dev >
2023-10-29 20:52:21 -07:00
Maksym Pavlenko
1b31993240
Rename sbserver to server
...
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com >
2023-10-12 15:46:57 -07:00
Maksym Pavlenko
536abf1b35
Remove legacy CRI
...
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com >
2023-10-12 09:18:45 -07:00
Derek McGowan
508aa3a1ef
Move to use github.com/containerd/log
...
Add github.com/containerd/log to go.mod
Signed-off-by: Derek McGowan <derek@mcg.dev >
2023-09-22 07:53:23 -07:00
Fu Wei
5ae3a7f417
Merge pull request #8198 from kiashok/argsEscapedSupportInCri
...
Add ArgsEscaped support for CRI
2023-03-07 16:12:24 +08:00
Kirtana Ashok
8137e41c48
Add ArgsEscaped support for CRI
...
This commit adds supports for the ArgsEscaped
value for the image got from the dockerfile.
It is used to evaluate and process the image
entrypoint/cmd and container entrypoint/cmd
options got from the podspec.
Signed-off-by: Kirtana Ashok <Kirtana.Ashok@microsoft.com >
2023-03-03 13:38:06 -08:00
Wei Fu
5946c1051e
*: fix code style issue
...
1. it's easy to check wrong input if using drain_exec_sync_io_timeout in error
2. avoid to use full error message, as part of error generated by go
stdlib would be changed in the future
3. delete the extra empty line
Signed-off-by: Wei Fu <fuweid89@gmail.com >
2023-03-03 17:51:03 +08:00
Wei Fu
ffebcb1223
cri: disable drain-exec-IO if it is empty timeout
...
Signed-off-by: Wei Fu <fuweid89@gmail.com >
2023-03-03 11:59:07 +08:00
Wei Fu
3c18decea7
*: add DrainExecSyncIOTimeout config and disable as by default
...
Signed-off-by: Wei Fu <fuweid89@gmail.com >
2023-03-03 00:21:55 +08:00
Wei Fu
a9cbddd65d
*: fix typo and skip exec-io-drain-testcase in win
...
Signed-off-by: Wei Fu <fuweid89@gmail.com >
2023-03-02 21:57:43 +08:00
Wei Fu
82c0f4ff86
pkg/cri/server: add timeout to drain exec io
...
By default, the child processes spawned by exec process will inherit standard
io file descriptors. The shim server creates a pipe as data channel. Both exec
process and its children write data into the write end of the pipe. And the
shim server will read data from the pipe. If the write end is still open, the
shim server will continue to wait for data from pipe.
So, if the exec command is like `bash -c "sleep 365d &"`, the exec process is
bash and quit after create `sleep 365d`. But the `sleep 365d` will hold the
write end of the pipe for a year! It doesn't make senses that CRI plugin
should wait for it.
For this case, we should use timeout to drain exec process's io instead of
waiting for it.
Fixes : #7802
Signed-off-by: Wei Fu <fuweid89@gmail.com >
2023-03-02 13:06:45 +08:00
Zechun Chen
b944b108df
Clean up repeated package import
...
Signed-off-by: Zechun Chen <zechun.chen@daocloud.io >
2023-02-10 16:21:55 +08:00
Kazuyoshi Kato
40aa4f3f1b
Implicitly discard the input to drain the reader
...
Signed-off-by: Derek McGowan <derek@mcg.dev >
2022-06-06 09:57:13 -07:00
Kazuyoshi Kato
49ca87d727
Limit the response size of ExecSync
...
Signed-off-by: Kazuyoshi Kato <katokazu@amazon.com >
2022-05-31 22:21:35 +00:00
Shengjing Zhu
f4f41296c2
Replace golang.org/x/net/context with std library
...
Signed-off-by: Shengjing Zhu <zhsj@debian.org >
2022-02-22 02:27:05 +08:00
haoyun
bbe46b8c43
feat: replace github.com/pkg/errors to errors
...
Signed-off-by: haoyun <yun.hao@daocloud.io >
Co-authored-by: zounengren <zouyee1989@gmail.com >
2022-01-07 10:27:03 +08:00
Mike Brown
a5c417ac06
move up to CRI v1 and support v1alpha in parallel
...
Signed-off-by: Mike Brown <brownwm@us.ibm.com >
2021-06-28 09:34:12 -05:00
Davanum Srinivas
1f5b84f27c
[CRI] Reduce clutter of log entries during process execution
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
2021-01-06 13:09:03 -05:00
Maksym Pavlenko
3d02441a79
Refactor pkg packages
...
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com >
2020-10-08 17:30:17 -07:00
Derek McGowan
b22b627300
Move cri server packages under pkg/cri
...
Organizes the cri related server packages under pkg/cri
Signed-off-by: Derek McGowan <derek@mcg.dev >
2020-10-07 13:09:37 -07:00