Commit Graph

5305 Commits

Author SHA1 Message Date
Phil Estes
e64ce76b13
Merge pull request #3523 from thaJeztah/bump_golang
AppVeyor: update to go 1.12.7
2019-08-12 11:24:33 -04:00
CarlosEDP
3ef26cd87c bump x/sys to fix riscv64 epoll
Signed-off-by: CarlosEDP <me@carlosedp.com>
2019-08-12 11:43:53 -03:00
Sebastiaan van Stijn
2ff7183cc2
AppVeyor: update to go 1.12.7
Use the latest Go release for testing on AppVeyor

> go1.12.7 (released 2019/07/08) includes fixes to cgo, the compiler,
> and the linker. See the Go 1.12.7 milestone on our issue tracker for details:
>
> https://github.com/golang/go/issues?q=milestone%3AGo1.12.7

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2019-08-12 09:57:02 +02:00
Derek McGowan
c017e0efed
Use a child context for errgroup in dispatch
Prevent an errgroup error from causing the acquire to
return a cancellation error. Previously any error
from the errgroup would cause the Dispatch to always
return the cancelled error.

Signed-off-by: Derek McGowan <derek@mcgstyle.net>
2019-08-09 16:01:23 -07:00
Derek McGowan
75771c4634
Add usage function to client
The usage function allows more configurable and accurate calculations
of the usage for an image.

Signed-off-by: Derek McGowan <derek@mcgstyle.net>
2019-08-09 15:46:22 -07:00
Sebastiaan van Stijn
b6fca48fed
bump go.etcd.io/bbolt v1.3.3
this brings the dependency back to a released version:

- go.etcd.io/bbolt 2eb7227ade...v1.3.3
  - etcd-io/bbolt#153 fix rollback panic bug
    - fixes etcd-io/bbolt#152 Panic (index out of range) on writeable tx rollback with db.NoFreelistSync

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2019-08-09 22:56:54 +02:00
Michael Crosby
ea13c9fe99
Merge pull request #3518 from crosbymichael/processors
Add docs for stream processors
2019-08-09 15:07:15 -04:00
Michael Crosby
0dadef19cf Add docs for stream processors
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2019-08-09 18:40:43 +00:00
Michael Crosby
d085d9b464 Remove encryption code from containerd core
We are separating out the encryption code and have designed a few new
interfaces and APIs for processing content streams.  This keep the core
clean of encryption code but enables not only encryption but support of
multiple content types ( custom media types ).

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2019-08-09 15:01:16 +00:00
Michael Crosby
f06e605f1a
Merge pull request #3515 from fuweid/me-remove-comment-line
remotes: remove useless line
2019-08-09 09:21:36 -04:00
Phil Estes
ec4ad5332d
Merge pull request #3506 from darfux/copy_md_when_set_ttrpcheader
namespace: Copy ttrpc metadata before setting header
2019-08-09 08:22:17 -04:00
Phil Estes
c0cf9a5905
Merge pull request #3509 from dmcgowan/update-1.3-beta-notes
Add release notes for stream processor
2019-08-09 08:20:35 -04:00
Wei Fu
282b19efd2 remotes: remove useless line
Signed-off-by: Wei Fu <fuweid89@gmail.com>
2019-08-09 17:15:09 +08:00
Li Yuxuan
a3a30635ef namespace: Copy ttrpc metadata before setting header
If there are multiple goroutines calling `namespace.WithNamespace` on a
ctx that already had namespace, there will be a data race when
`withTTRPCNamespaceHeader` calling `MD.Set()`. So we have to copy the md
before using it.

Signed-off-by: Li Yuxuan <liyuxuan04@baidu.com>
2019-08-09 13:16:29 +08:00
Wei Fu
a1c88e195a
Merge pull request #3484 from rancher/master
Limit multiple platform manifests to one for size check
2019-08-09 10:09:50 +08:00
Phil Estes
b4dce14ac0
Merge pull request #3510 from dmcgowan/remove-ppc64le
Remove ppc64le from travis
2019-08-08 21:07:49 -04:00
Derek McGowan
04b7f1b594
Remove ppc64le from travis
The tests run too slow and flaky. Once the flakiness and
speed are addressed we can re-enable.

Signed-off-by: Derek McGowan <derek@mcgstyle.net>
2019-08-08 16:11:17 -07:00
Derek McGowan
2fac3ee27d
Add release notes for stream processor
Signed-off-by: Derek McGowan <derek@mcgstyle.net>
2019-08-08 14:43:34 -07:00
Darren Shepherd
1161409779 Limit multiple platform manifests to one for size check
client.Pull will only pull one matching platform by default.
When checking the size of image we match that behavior so that
we don't look for multiple platforms that might not exist on disk.

Signed-off-by: Darren Shepherd <darren@rancher.com>
2019-08-08 14:16:27 -07:00
Michael Crosby
23faecfb66
Merge pull request #3505 from crosbymichael/remoteopts-unpack
Add UnpackOpts to RemoteContext
2019-08-08 13:20:34 -04:00
Michael Crosby
fe3638e887 Add UnpackOpts to RemoteContext
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2019-08-08 15:42:51 +00:00
Michael Crosby
1eb13fc2f0
Merge pull request #3501 from wanghuaiqing2010/master
cast Rdev of Stat_t to uint64 for mips
2019-08-08 10:27:52 -04:00
wanghuaiqing
d8322e38c7 cast Rdev of Stat_t to uint64 for mips
Signed-off-by: wanghuaiqing <wanghuaiqing@loongson.cn>
2019-08-08 14:24:50 +08:00
Michael Crosby
5222236c1b
Merge pull request #3502 from estesp/clarify-ctr
Clarify text on `ctr` support/inclusion
2019-08-07 16:27:41 -04:00
Phil Estes
4e6e61c44e
Merge pull request #3482 from crosbymichael/apply-remote
Add StreamProcessors for handling media types of content streams
2019-08-07 16:21:02 -04:00
Michael Crosby
930da7cfa7
Merge pull request #3503 from Random-Liu/default-ns
Save default namespace in the client.
2019-08-07 15:54:04 -04:00
Lantao Liu
af7b7cdb02 Save default namespace in the client.
Signed-off-by: Lantao Liu <lantaol@google.com>
2019-08-07 12:03:22 -07:00
Michael Crosby
552a0b1be5 Handle stderr in stream processors
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2019-08-07 18:36:52 +00:00
Michael Crosby
3fded74bc7 Add unpack opts
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2019-08-07 18:35:55 +00:00
Michael Crosby
26b90619e2 Pass apply opts through rootfs/* code
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2019-08-07 18:35:55 +00:00
Michael Crosby
e1489f93c3 Use named pipes for windows processors
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2019-08-07 18:35:55 +00:00
Michael Crosby
134d3c8159 Add windows apply code
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2019-08-07 18:35:55 +00:00
Michael Crosby
f867401c69 Use fds and pass Payloads over diff api
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2019-08-07 18:35:55 +00:00
Michael Crosby
366823727f Add server config for stream processors
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2019-08-07 18:35:55 +00:00
Michael Crosby
97a98773cf Add StreamProcessor for apply
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2019-08-07 18:35:55 +00:00
Phil Estes
0bc5df0354
Clarify text on ctr support/inclusion
Add some clarifying language around the expectations on `ctr`.

Signed-off-by: Phil Estes <estesp@linux.vnet.ibm.com>
2019-08-07 14:35:17 -04:00
Phil Estes
2ff1ef4f6c
Merge pull request #3499 from dmcgowan/update-beta-release-notes
Update 1.3 beta release notes
2019-08-07 10:05:35 -04:00
Phil Estes
4507cd1e04
Merge pull request #3500 from jterry75/revendor_go-winio
Update Microsoft/go-winio v0.4.14
2019-08-07 09:18:07 -04:00
Akihiro Suda
d0f4cf0bde
Merge pull request #3497 from ethan-daocloud/patch-1
pusher.go: error message typo correction
2019-08-07 13:08:36 +09:00
ethan
0a3769eec6 pusher.go: error message typo correction
Signed-off-by: Guangming Wang <guangming.wang@daocloud.io>
2019-08-07 10:09:23 +08:00
Derek McGowan
635ccc0671
Add cri release notes
Signed-off-by: Derek McGowan <derek@mcgstyle.net>
2019-08-06 13:31:09 -07:00
Justin Terry (VM)
4667ee47a5 Update Microsoft/go-winio v0.4.14
Signed-off-by: Justin Terry (VM) <juterry@microsoft.com>
2019-08-06 13:24:42 -07:00
Phil Estes
03d934adc4
Merge pull request #3474 from crosbymichael/uuid
Add UUID and server info to introspection
2019-08-06 15:58:05 -04:00
Michael Crosby
13c6dcdea1
Merge pull request #3498 from dmcgowan/limit-ppc64le
Limit default matrix to runc v2 runtime
2019-08-06 15:32:23 -04:00
Derek McGowan
7792c23b14
Limit default matrix to runc v2 runtime
Explicitly add runc v1 runtime test on Linux

Signed-off-by: Derek McGowan <derek@mcgstyle.net>
2019-08-06 10:21:11 -07:00
Akihiro Suda
225cc7d5bd
Merge pull request #3494 from jterry75/remove_v2
Completely remove Windows v2 in-tree shim
2019-08-07 02:19:12 +09:00
Wei Fu
7fddefc493
Merge pull request #3496 from darfux/v2_close_ttrpc_when_delete
v2: Close ttrpc connection when Delete()
2019-08-06 23:51:02 +08:00
Michael Crosby
28bdb71cc9
Merge pull request #3492 from Random-Liu/update-cri
Update cri to b213648c5b
2019-08-06 10:53:29 -04:00
Michael Crosby
9f0bc2b53f Add UUID and server info to introspection
Closes #1862

This adds a new rpc to the introspection service to provide server
information with a generated UUID that is done on demand and the os and
arch of the server.

ctr output:

```bash
> sudo ctr version

Client:
  Version:  v1.2.0-802-g57821695.m
  Revision: 578216950de9c1c188708369e2a31ac6c494dfee.m

Server:
  Version:  v1.2.0-802-g57821695.m
  Revision: 578216950de9c1c188708369e2a31ac6c494dfee.m
  UUID: 92e982a9-f13e-4a2c-9032-e69b27fed454
  OS: linux
  ARCH: amd64
```

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2019-08-06 14:40:48 +00:00
Phil Estes
dce8541387
Merge pull request #3493 from dmcgowan/fix-travis-matrix
Fix travis matrix
2019-08-06 10:04:50 -04:00