Browse code

Update containerd to v1.2.1-rc.0

The previous update used a commit from master. Now that
all the fixes are backported to the containerd 1.2 release
branch, we can switch back to that branch.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

Sebastiaan van Stijn authored on 2018/11/21 08:05:16
Showing 7 changed files
... ...
@@ -4,7 +4,7 @@
4 4
 # containerd is also pinned in vendor.conf. When updating the binary
5 5
 # version you may also need to update the vendor version to pick up bug
6 6
 # fixes or new APIs.
7
-CONTAINERD_COMMIT=aa537a67b3a9026c423a63dbaf71e4cc0776b2ad # v1.2.0-13-g8afcade1
7
+CONTAINERD_COMMIT=de1f167ab96338a9f5c2b17347abf84bdf1dd411 # v1.2.1-rc.0
8 8
 
9 9
 install_containerd() {
10 10
 	echo "Install containerd version $CONTAINERD_COMMIT"
... ...
@@ -118,7 +118,7 @@ github.com/googleapis/gax-go v2.0.0
118 118
 google.golang.org/genproto 694d95ba50e67b2e363f3483057db5d4910c18f9
119 119
 
120 120
 # containerd
121
-github.com/containerd/containerd aa537a67b3a9026c423a63dbaf71e4cc0776b2ad # v1.2.0
121
+github.com/containerd/containerd de1f167ab96338a9f5c2b17347abf84bdf1dd411 # v1.2.1-rc.0
122 122
 github.com/containerd/fifo 3d5202aec260678c48179c56f40e6f38a095738c
123 123
 github.com/containerd/continuity bd77b46c8352f74eb12c85bdc01f4b90f69d66b4
124 124
 github.com/containerd/cgroups 5e610833b72089b37d0e615de9a92dfc043757c2
... ...
@@ -224,8 +224,7 @@ This will be the best place to discuss design and implementation.
224 224
 
225 225
 For sync communication we have a community slack with a #containerd channel that everyone is welcome to join and chat about development.
226 226
 
227
-**Slack:** Catch us in the #containerd and #containerd-dev channels on dockercommunity.slack.com.
228
-[Click here for an invite to docker community slack.](https://join.slack.com/t/dockercommunity/shared_invite/enQtNDY4MDc1Mzc0MzIwLTgxZDBlMmM4ZGEyNDc1N2FkMzlhODJkYmE1YTVkYjM1MDE3ZjAwZjBkOGFlOTJkZjRmZGYzNjYyY2M3ZTUxYzQ)
227
+**Slack:** https://join.slack.com/t/dockercommunity/shared_invite/enQtNDM4NjAwNDMyOTUwLWZlMDZmYWRjZjk4Zjc5ZGQ5NWZkOWI1Yjk2NGE3ZWVlYjYxM2VhYjczOWIyZDFhZTE3NTUwZWQzMjhmNGYyZTg
229 228
 
230 229
 ### Reporting security issues
231 230
 
... ...
@@ -250,8 +249,3 @@ Please find all these core project documents, including the:
250 250
  * and [Contributing guidelines](https://github.com/containerd/project/blob/master/CONTRIBUTING.md)
251 251
 
252 252
 information in our [`containerd/project`](https://github.com/containerd/project) repository.
253
-
254
-## Adoption
255
-
256
-Interested to see who is using containerd? Are you using containerd in a project?
257
-Please add yourself via pull request to our [ADOPTERS.md](./ADOPTERS.md) file.
... ...
@@ -75,7 +75,7 @@ type ResolverOptions struct {
75 75
 
76 76
 	// Credentials provides username and secret given a host.
77 77
 	// If username is empty but a secret is given, that secret
78
-	// is interpreted as a long lived token.
78
+	// is interpretted as a long lived token.
79 79
 	// Deprecated: use Authorizer
80 80
 	Credentials func(string) (string, string, error)
81 81
 
... ...
@@ -356,6 +356,9 @@ func (p *Init) kill(ctx context.Context, signal uint32, all bool) error {
356 356
 
357 357
 // KillAll processes belonging to the init process
358 358
 func (p *Init) KillAll(ctx context.Context) error {
359
+	p.mu.Lock()
360
+	defer p.mu.Unlock()
361
+
359 362
 	err := p.runtime.Kill(ctx, p.id, int(syscall.SIGKILL), &runc.KillOpts{
360 363
 		All: true,
361 364
 	})
... ...
@@ -49,9 +49,11 @@ func (p *linuxPlatform) CopyConsole(ctx context.Context, console console.Console
49 49
 		cwg.Add(1)
50 50
 		go func() {
51 51
 			cwg.Done()
52
-			p := bufPool.Get().(*[]byte)
53
-			defer bufPool.Put(p)
54
-			io.CopyBuffer(epollConsole, in, *p)
52
+			bp := bufPool.Get().(*[]byte)
53
+			defer bufPool.Put(bp)
54
+			io.CopyBuffer(epollConsole, in, *bp)
55
+			// we need to shutdown epollConsole when pipe broken
56
+			epollConsole.Shutdown(p.epoller.CloseConsole)
55 57
 		}()
56 58
 	}
57 59
 
... ...
@@ -21,7 +21,7 @@ github.com/gogo/googleapis 08a7655d27152912db7aaf4f983275eaf8d128ef
21 21
 github.com/golang/protobuf v1.1.0
22 22
 github.com/opencontainers/runtime-spec eba862dc2470385a233c7507392675cbeadf7353 # v1.0.1-45-geba862d
23 23
 github.com/opencontainers/runc 10d38b660a77168360df3522881e2dc2be5056bd
24
-github.com/sirupsen/logrus v1.0.3
24
+github.com/sirupsen/logrus v1.0.0
25 25
 github.com/urfave/cli 7bc6a0acffa589f415f88aca16cc1de5ffd66f9c
26 26
 golang.org/x/net b3756b4b77d7b13260a0a2ec658753cf48922eac
27 27
 google.golang.org/grpc v1.12.0
... ...
@@ -43,7 +43,7 @@ github.com/google/go-cmp v0.1.0
43 43
 go.etcd.io/bbolt v1.3.1-etcd.8
44 44
 
45 45
 # cri dependencies
46
-github.com/containerd/cri f913714917d2456d7e65a0be84962b1ce8acb487 # release/1.2 branch
46
+github.com/containerd/cri 2bb57d27203d82fc79c496aea724aec593b2705a # release/1.2 branch
47 47
 github.com/containerd/go-cni 40bcf8ec8acd7372be1d77031d585d5d8e561c90
48 48
 github.com/blang/semver v3.1.0
49 49
 github.com/containernetworking/cni v0.6.0
... ...
@@ -81,9 +81,9 @@ k8s.io/kubernetes v1.12.0
81 81
 k8s.io/utils cd34563cd63c2bd7c6fe88a73c4dcf34ed8a67cb
82 82
 
83 83
 # zfs dependencies
84
-github.com/containerd/zfs 9f6ef3b1fe5144bd91fe5855b4eba81bc0d17d03
84
+github.com/containerd/zfs 9a0b8b8b5982014b729cd34eb7cd7a11062aa6ec
85 85
 github.com/mistifyio/go-zfs 166add352731e515512690329794ee593f1aaff2
86 86
 github.com/pborman/uuid c65b2f87fee37d1c7854c9164a450713c28d50cd
87 87
 
88 88
 # aufs dependencies
89
-github.com/containerd/aufs da3cf16bfbe68ba8f114f1536a05c01528a25434
89
+github.com/containerd/aufs ffa39970e26ad01d81f540b21e65f9c1841a5f92