Henry Wang
8710d4d014
cri: close fifos when container is deleted
...
Signed-off-by: Henry Wang <henwang@amazon.com >
2022-04-21 21:46:50 +00:00
Eng Zer Jun
18ec2761c0
test: use T.TempDir to create temporary test directory
...
The directory created by `T.TempDir` is automatically removed when the
test and all its subtests complete.
Reference: https://pkg.go.dev/testing#T.TempDir
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com >
2022-03-15 14:03:50 +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
Michael Crosby
6765524b73
use write lock when updating container stats
...
Signed-off-by: Michael Crosby <michael@thepasture.io >
2021-11-11 15:17:48 +00:00
David Porter
2e6d5709e3
Implement CRI container and pods stats
...
See https://kep.k8s.io/2371
* Implement new CRI RPCs - `ListPodSandboxStats` and `PodSandboxStats`
* `ListPodSandboxStats` and `PodSandboxStats` which return stats about
pod sandbox. To obtain pod sandbox stats, underlying metrics are
read from the pod sandbox cgroup parent.
* Process info is obtained by calling into the underlying task
* Network stats are taken by looking up network metrics based on the
pod sandbox network namespace path
* Return more detailed stats for cpu and memory for existing container
stats. These metrics use the underlying task's metrics to obtain
stats.
Signed-off-by: David Porter <porterdavid@google.com >
2021-11-03 17:52:05 -07:00
Derek McGowan
63b7e5771e
Merge pull request #5973 from Juneezee/deprecate-ioutil
...
refactor: move from io/ioutil to io and os package
2021-10-01 10:52:06 -07:00
zounengren
fcffe0c83a
switch usage directly to errdefs.(ErrAlreadyExists and ErrNotFound)
...
Signed-off-by: Zou Nengren <zouyee1989@gmail.com >
2021-09-24 18:26:58 +08:00
Eng Zer Jun
50da673592
refactor: move from io/ioutil to io and os package
...
The io/ioutil package has been deprecated as of Go 1.16, see
https://golang.org/doc/go1.16#ioutil . This commit replaces the existing
io/ioutil functions with their new definitions in io and os packages.
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com >
2021-09-21 09:50:38 +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
Shiming Zhang
dc6f5ef3b9
Fix repeated sending signal
...
Signed-off-by: Shiming Zhang <wzshiming@foxmail.com >
2021-02-17 21:33:49 +08:00
Shengjing Zhu
5988bfc1ef
docs: Various typo found by codespell
...
Signed-off-by: Shengjing Zhu <zhsj@debian.org >
2020-12-22 13:22:16 +08:00
Davanum Srinivas
a9cb22309a
Copy pkg/symlink and pkg/truncindex from moby/moby
...
moby/moby SHA : 9c15e82f19b0ad3c5fe8617a8ec2dddc6639f40a
github.com/docker/docker/pkg/truncindex/truncindex.go -> pkg/cri/store/truncindex/truncindex.go
github.com/docker/docker/pkg/symlink/LICENSE.APACHE -> pkg/symlink/LICENSE.APACHE
github.com/docker/docker/pkg/symlink/LICENSE.BSD -> pkg/symlink/LICENSE.BSD
github.com/docker/docker/pkg/symlink/README.md -> pkg/symlink/README.md
github.com/docker/docker/pkg/symlink/fs.go -> pkg/symlink/fs.go
github.com/docker/docker/pkg/symlink/fs_unix.go -> pkg/symlink/fs_unix.go
github.com/docker/docker/pkg/symlink/fs_windows.go -> pkg/symlink/fs_windows.go
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
2020-10-15 08:36:35 -04: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