Commit Graph

10248 Commits

Author SHA1 Message Date
Phil Estes
006b44181a
Merge pull request #5992 from cpuguy83/client_otel_trace
Inject otel traces to grpc client.
2021-10-21 13:37:28 -04:00
Romain Aviolat
ebc5cf19ac
feat(doc): update to version 2 syntax
Signed-off-by: Romain Aviolat <r.aviolat@gmail.com>
2021-10-21 19:06:47 +02:00
Brian Goff
294143bf38 Inject otel traces to grpc client.
This uses the global trace provider.
If a trace provider is not set, a no-op provider is used.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
2021-10-21 16:08:15 +00:00
Michael Crosby
51de1d3a45
Merge pull request #6142 from AkihiroSuda/client-expose-image-platform
client: expose (*image).platform
2021-10-21 11:36:01 -04:00
Akihiro Suda
cd2f2b0af6
client: expose (*image).platform
Expose (*image).platform as Image.Platform() .

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2021-10-21 19:46:50 +09:00
Phil Estes
ac5790c8e2
Merge pull request #6128 from xens/feat/doc_sched_core
Adding documentation for Core Scheduling
2021-10-20 11:35:37 -04:00
Phil Estes
3f26fd22e1
Merge pull request #6130 from cpuguy83/inject-ns-to-rpc
Ensure namespace is proxied to grpc/ttrpc plugins
2021-10-20 11:29:46 -04:00
Derek McGowan
f44d4cf8ca
Merge pull request #6109 from timchenxiaoyu/githubdev
fix #6054  MaxConcurrentDownloads is not effect when Unpack is true
2021-10-19 13:50:35 -07:00
Phil Estes
9c488e5dae
Merge pull request #6124 from samj1912/large-labels
Output a warning for label image labels instead of erroring
2021-10-19 08:36:50 -04:00
weixian.cxy
535191abf3 fix #6054 MaxConcurrentDownloads is not effect when Unpack is true
Signed-off-by: weixian.cxy <weixian.cxy@alibaba-inc.com>
2021-10-19 10:56:01 +08:00
Fu Wei
59ca4bfd76
Merge pull request #6132 from dcantah/wcow-snapshotter-spelling 2021-10-19 07:55:13 +08:00
Romain Aviolat
3b73922fba
feat(doc): add Core Scheduling documentation
Adding documentation for the Core Scheduling feature.

Signed-off-by: Romain Aviolat <r.aviolat@gmail.com>
2021-10-18 19:16:25 +02:00
Daniel Canter
c18c2e7356 Fix spelling mistake in Windows snapshotter
deactvateErr -> deactivateErr

Signed-off-by: Daniel Canter <dcanter@microsoft.com>
2021-10-18 08:54:55 -07:00
Phil Estes
4da5d94da7
Merge pull request #6126 from claudiubelu/cleanup-wcow-layers
Windows: Cleanup rm- prefixed layers
2021-10-18 06:43:17 -07:00
Brian Goff
130a9c7ddb Ensure namespace is proxied to grpc/ttrpc plugins
Before this change we only ever had the grpc incoming medata set so when
we make a request to a shim or a grpc plugin the namespace is not sent
over the RPC.

I need this for github.com/cpuguy83/systemdshim, and I am sure there are
other use-cases where this would be needed.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
2021-10-16 00:09:50 +00:00
Sambhav Kothari
2a8dac12a7 Output a warning for label image labels instead of erroring
This change ignore errors during container runtime due to large
image labels and instead outputs warning. This is necessary as certain
image building tools like buildpacks may have large labels in the images
which need not be passed to the container.

Signed-off-by: Sambhav Kothari <sambhavs.email@gmail.com>
2021-10-14 19:25:48 +01:00
Maksym Pavlenko
10d9d1a60f
Merge pull request #6118 from zouyee/ioutil
cleanup deprecated package  `io/ioutil `
2021-10-13 14:57:38 -07:00
Claudiu Belu
6020189003 integration: Enable some tests for Windows
Some of the tests in containerd/integration/client/ are not
currently being run on Windows, even though they can pass.

Signed-off-by: Claudiu Belu <cbelu@cloudbasesolutions.com>
2021-10-13 16:04:46 +03:00
zounengren
1f1cad3912 io/ioutil package has been deprecated in Go 1.16 that replaces io/ioutil functions
Signed-off-by: Zou Nengren <zouyee1989@gmail.com>
2021-10-13 09:18:31 +08:00
Derek McGowan
0855725370
Merge pull request #6115 from zouyee/utest
close Writer after use which may memory leak
2021-10-12 12:59:03 -07:00
Phil Estes
3f417d61e0
Merge pull request #5778 from claudiubelu/windows/adds-resource-limits
Adds Windows resource limits support
2021-10-12 12:56:44 -07:00
zounengren
46be069379 close Writer after use which may leak mem
Signed-off-by: Zou Nengren <zouyee1989@gmail.com>
2021-10-12 17:25:08 +08:00
Derek McGowan
5b29542cbe
Merge pull request #6098 from dmcgowan/prepare-1.6.0-beta.0
Prepare release notes for v1.6.0-beta.0
2021-10-11 11:29:51 -07:00
Phil Estes
37e9efbe6a
Merge pull request #6105 from dmcgowan/test-add-error-testcontainerdrestart
Add error message to in TestContainerdRestart integration test
2021-10-11 09:55:33 -07:00
Phil Estes
2e3c8d5e63
Merge pull request #6110 from rgl/rgl-new-container-doc-typo
Fix typo in the NewContainer function documentation
2021-10-11 09:10:35 -07:00
Derek McGowan
1abe505121
Prepare release notes for v1.6.0-beta.0
Signed-off-by: Derek McGowan <derek@mcg.dev>
2021-10-11 08:42:07 -07:00
Derek McGowan
c5947557d8
Add error message to in TestContainerdRestart integration test
Signed-off-by: Derek McGowan <derek@mcg.dev>
2021-10-11 08:23:31 -07:00
Phil Estes
6927fc3276
Merge pull request #6104 from dmcgowan/update-cgroups
Update cgroups to v1.0.2
2021-10-10 20:17:07 -04:00
Rui Lopes
072a7074b4 Fix typo in the NewContainer function documentation
Signed-off-by: Rui Lopes <rgl@ruilopes.com>
2021-10-10 19:46:55 +01:00
Fu Wei
193bafc42c
Merge pull request #6100 from jonyhy96/cleanup-test 2021-10-09 18:54:16 +08:00
haoyun
ac2df3ba9a test: check file content after mount
Signed-off-by: haoyun <yun.hao@daocloud.io>
2021-10-09 18:19:34 +08:00
Derek McGowan
18d483b236
Update cgroups to v1.0.2
Signed-off-by: Derek McGowan <derek@mcg.dev>
2021-10-08 17:48:33 -07:00
Mike Brown
a4663097ec
Merge pull request #6107 from estesp/test-timeout
Update test timeout based on recent cancellations
2021-10-08 19:16:54 -05:00
Phil Estes
4ed3c524cf
Update test timeout based on recent cancellations
Signed-off-by: Phil Estes <estesp@amazon.com>
2021-10-08 16:10:55 -07:00
Derek McGowan
3f033aeff3
Merge pull request #6106 from dmcgowan/test-cri-teardown-check-pid
Check the pid in cri test teardown
2021-10-08 14:44:44 -07:00
Derek McGowan
d252a293df
Remove extra test_teardown
Signed-off-by: Derek McGowan <derek@mcg.dev>
2021-10-08 13:08:13 -07:00
Derek McGowan
4a569c8894
Check the pid in cri test teardown
Prevent the test from failing when no pid is found
during teardown.

Signed-off-by: Derek McGowan <derek@mcg.dev>
2021-10-08 13:06:18 -07:00
Derek McGowan
cb6fb93af5
Merge pull request #6011 from crosbymichael/schedcore
add runc shim support for sched core
2021-10-08 10:42:16 -07:00
Derek McGowan
60ffa3ff7d
Merge pull request #5579 from claudiubelu/integration/restart-containerd
integration: Enables Windows containerd restart test
2021-10-08 10:33:10 -07:00
Derek McGowan
c01ebe7cfb
Merge pull request #6099 from dcantah/update-hcsshim-0.9
vendor: Bump hcsshim to 0.9.0
2021-10-08 10:28:19 -07:00
Derek McGowan
26ee1b1ee5
Merge pull request #4695 from crosbymichael/cri-class
[cri] Add CNI conf based on runtime class
2021-10-08 09:27:49 -07:00
Michael Crosby
f1054dbbde
fix integration client vendor
Signed-off-by: Michael Crosby <michael@thepasture.io>
2021-10-08 16:20:21 +00:00
Michael Crosby
e48bbe8394 add runc shim support for sched core
In linux 5.14 and hopefully some backports, core scheduling allows processes to
be co scheduled within the same domain on SMT enabled systems.

The containerd impl sets the core sched domain when launching a shim. This
allows a clean way for each shim(container/pod) to be in its own domain and any
additional containers, (v2 pods) be be launched with the same domain as well as
any exec'd process added to the container.

kernel docs: https://www.kernel.org/doc/html/latest/admin-guide/hw-vuln/core-scheduling.html

Signed-off-by: Michael Crosby <michael@thepasture.io>
2021-10-08 16:18:09 +00:00
Phil Estes
88e1cf5fb5
Merge pull request #6102 from thaJeztah/bump_go_1.17.2
Update Go to 1.17.2
2021-10-08 10:44:22 -04:00
Sebastiaan van Stijn
de1a39bf32
Update Go to 1.17.2
go1.17.2 (released 2021-10-07) includes a security fix to the linker and misc/wasm
directory, as well as bug fixes to the compiler, the runtime, the go command, and
to the time and text/template packages. See the Go 1.17.2 milestone on our issue
tracker for details:

https://github.com/golang/go/issues?q=milestone%3AGo1.17.2+label%3ACherryPickApproved

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-10-08 15:26:34 +02:00
Daniel Canter
46b152f81b vendor: Bump hcsshim to 0.9.0
This change bumps hcsshim to 0.9.0. Main thing this tag contains is support for
Kubernetes Host Process containers
See: https://kubernetes.io/docs/tasks/configure-pod-container/create-hostprocess-pod/

Signed-off-by: Daniel Canter <dcanter@microsoft.com>
2021-10-07 21:00:35 -07:00
Claudiu Belu
fb4432c24a integration: Enables TestVolumeCopyUp for Windows
The image that the test is used for Windows has busybox included,
which means we can use sleep.

Signed-off-by: Claudiu Belu <cbelu@cloudbasesolutions.com>
2021-10-07 19:30:42 -07:00
Claudiu Belu
0ba3532f54 integration: Enables TestRuntimeHandler for Windows
Signed-off-by: Claudiu Belu <cbelu@cloudbasesolutions.com>
2021-10-07 18:20:59 -07:00
Phil Estes
e648fa2e81
Merge pull request #5933 from claudiubelu/integration/import-multilayer
integration: Adds test for multilayer image import
2021-10-07 14:09:25 -04:00
Derek McGowan
2d48b6a864
Merge pull request #6031 from fuweid/carry-5648
runtime: should fail fast if dial error on shim
2021-10-07 09:43:10 -07:00