Commit Graph

10081 Commits

Author SHA1 Message Date
Maksym Pavlenko
df8c206a92 Cleanup shim loading
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2021-11-01 07:37:01 -07:00
Maksym Pavlenko
b554b577b0 Move shim restore to a separate file
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2021-11-01 07:37:01 -07:00
Maksym Pavlenko
a3d298193c Fix backward compatibility with old task shims
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2021-11-01 07:37:01 -07:00
Maksym Pavlenko
33786ee4d2 Add plugin dependency between shim and shim services
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2021-11-01 07:37:00 -07:00
Maksym Pavlenko
fb5f6ce3c9 Rework task create and cleanup flow
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2021-11-01 07:37:00 -07:00
Maksym Pavlenko
7c4ead285d Add task manager
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2021-11-01 07:36:58 -07:00
Maksym Pavlenko
2d5d3541e6 Rename task manager to shim manager
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2021-11-01 07:36:34 -07:00
Mike Brown
ea89788105 adds additional debug out to timebox cni setup
Signed-off-by: Mike Brown <brownwm@us.ibm.com>
2021-11-01 09:34:29 -05:00
Fu Wei
c8e88447ad
Merge pull request #6182 from claudiubelu/integration/windows-test-volume-copy-up 2021-11-01 15:59:31 +08:00
Da McGrady
6fa9f22fa3
compression: support zstd with skippable frame
As a matter of fact, there are two frame formats defined by Zstandard: Zstandard frames and Skippable frames.
So we should probably support zstd algorithms with skippable frames.
See https://tools.ietf.org/id/draft-kucherawy-dispatch-zstd-00.html#rfc.section.2 for more details.

Signed-off-by: Da McGrady <dabkb@aol.com>
2021-11-01 11:36:46 +08:00
Kohei Tokunaga
f0d3ea96cf converter: Allow hooks during image conversion
This commit allows hook callbacks during image conversion.
This enbles the caller additional modification for each blob descriptor.

Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com>
2021-11-01 09:50:50 +09:00
Wei Fu
6ee8577e54 sys/reaper: avoid leaky goroutine when exec timeout
The channel is created with no capacity that it needs receiver when
sending data. Otherwise, the sending-data goroutine will be blocked
forever. For the #6166 pr, the exec command timeout will return and
no receiver for the data. It will cause goroutine leaky.

This commit allocates buffered channel for the command status and closes
the channel after sending. And also use time.Timer with Stop for
performance concern.

Signed-off-by: Wei Fu <fuweid89@gmail.com>
2021-10-31 23:04:04 +08:00
Phil Estes
d0bdb0b65e
Merge pull request #6121 from claudiubelu/integration/enables-windows-tests-part-2
integration: Enable some tests for Windows (part 2)
2021-10-29 11:25:49 -04:00
Derek McGowan
d97b40c300
Merge pull request #6085 from claudiubelu/integration/enables-windows-tests
integration: Enable some tests for Windows
2021-10-28 13:30:23 -07:00
Phil Estes
dc869b7855
Merge pull request #6125 from xens/update_doc_to_v2
Update doc to version 2 syntax
2021-10-28 10:20:17 -04:00
Phil Estes
185c0fb94d
Merge pull request #6166 from botieking98/fix-wait-block
fix shim reaper wait command execute blocked
2021-10-28 10:19:56 -04:00
Phil Estes
0800b45dd2
Merge pull request #6145 from tonistiigi/content-close-fix
content: close stream after commit request
2021-10-28 10:02:33 -04:00
Phil Estes
64f7abd696
Merge pull request #6165 from jmacelroy/main
Generating token options with each scope as a separate string.
2021-10-27 16:08:59 -04:00
Jacob MacElroy
88fc5cf2d0 Adding scope tests for ParseAuthHeader
Signed-off-by: Jacob MacElroy <jacob@okteto.com>
2021-10-27 11:09:32 -06:00
Phil Estes
7207818307
Merge pull request #6167 from claudiubelu/update-go-cni 2021-10-27 09:53:19 -04:00
botieking98
3e51312a61 fix shim reaper wait command execute blocked
wait no timeout will lead to event publish
process hang in some special scenarios.

Signed-off-by: botieking98 <botieking@gmail.com>
2021-10-27 15:20:03 +08:00
Mike Brown
aa65faebd7
Merge pull request #6159 from claudiubelu/commands/tasks-metrics-windows
commands: Enables task metrics for Windows
2021-10-26 14:41:26 -07:00
Jacob MacElroy
7438edc7ed Adding tests for GenerateTokenOptions
Test are being added for GenerateTokenOptions to cover multiple scope cases and the error cases handled.

Signed-off-by: Jacob MacElroy <jacob@okteto.com>
2021-10-26 14:05:17 -06:00
Jacob MacElroy
9b4a6f1295 Generate token options with each scope as a separate string.
Currently scopes added to token options are added with all scopes included in space delimited string. This changes it so that each scope is added to the string slice as a separate string. This seems to be the desire behavior based on the fact that a string slice is used and the usage of this function in github.com/moby/buildkit.

Signed-off-by: Jacob MacElroy <jacob@okteto.com>
2021-10-26 12:57:39 -06:00
Derek McGowan
0d0fb68589
Merge pull request #6149 from ukontainer/vendor-moby-sys
vendor: update moby/sys for darwin support
2021-10-25 15:20:10 -07:00
Hajime Tazaki
b8f3ebb03b vendor: update moby/sys for darwin support
The mount package of darwin requires to retrive mountinfo to check if
the target of unmount if still mounted or not.  Thus pull the upstreamed
version of moby/sys to support this operation.

Signed-off-by: Hajime Tazaki <thehajime@gmail.com>
2021-10-23 07:48:17 +09:00
Derek McGowan
45c5298700
Merge pull request #6144 from dmcgowan/prepare-v1.6.0-beta.1
Prepare v1.6.0-beta.1
2021-10-22 14:39:38 -07:00
Derek McGowan
0ccc386c86
Prepare release notes for v1.6.0-beta.1
Signed-off-by: Derek McGowan <derek@mcg.dev>
2021-10-22 13:37:45 -07:00
Derek McGowan
e5fc3b38ee
Update mailmap
Signed-off-by: Derek McGowan <derek@mcg.dev>
2021-10-22 13:37:45 -07:00
Derek McGowan
37720fc6fd
Update api vendor
Signed-off-by: Derek McGowan <derek@mcg.dev>
2021-10-22 13:37:45 -07:00
Phil Estes
fc5c51d5f4
Merge pull request #6136 from zouyee/cni100
bump cni to spec v1.0.0
2021-10-22 11:45:52 -04:00
zounengren
a217b5ac8f bump CNI to spec v1.0.0
Signed-off-by: zounengren <zouyee1989@gmail.com>
2021-10-22 10:58:40 +08:00
Tonis Tiigi
010a9e2bca content: close stream after commit request
This allows both client and server to determine when
stream is completed. Previously this was done by
closesend call from the client side but that is async
so client can not assume that the server side also
already thinks that stream is complete.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-10-21 19:24:28 -07:00
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