Skip to content

Release binary update for imgcrypt#5498

Merged
dmcgowan merged 8 commits intocontainerd:masterfrom
mikebrow:release-binary-update-for-imgcrypt
May 13, 2021
Merged

Release binary update for imgcrypt#5498
dmcgowan merged 8 commits intocontainerd:masterfrom
mikebrow:release-binary-update-for-imgcrypt

Conversation

@mikebrow
Copy link
Copy Markdown
Member

@mikebrow mikebrow commented May 13, 2021

we are currently shipping in the cni tar.gz one of the test only binaries from the imgcrypt repo... (ctr-enc)

see containerd/imgcrypt#48

This PR switches to only release ... ctd-decoder

after this pr:

mike@mike-VirtualBox:~/go/src/github.com/containerd/containerd$ sudo GOPATH=$GOPATH make cri-cni-release
+ bin/ctr
+ bin/containerd
+ bin/containerd-stress
+ bin/containerd-shim
+ bin/containerd-shim-runc-v1
+ bin/containerd-shim-runc-v2
....
mike@mike-VirtualBox:~/go/src/github.com/containerd/containerd$ sudo ls _output/cri/usr/local/bin
containerd	containerd-shim		 containerd-shim-runc-v2  containerd-stress.exe  critest      ctr
containerd.exe	containerd-shim-runc-v1  containerd-stress	  crictl		 ctd-decoder  ctr.exe

thaJeztah and others added 6 commits May 6, 2021 12:42
Signed-off-by: Sebastiaan van Stijn <[email protected]>
(cherry picked from commit 15e0bd5)
Signed-off-by: Sebastiaan van Stijn <[email protected]>
This forces vendoring to only take dependencies of this repository to
be taken into account, effectively cutting the circular dependency (for
the vendored code), and to prevent depending on transitive dependencies
coming from older versions of containerd.

go mod does not allow using the main module as a local "replace" rule using
a path; see golang/go#45492 and golang/go#34417, so instead, an empty module
is used.

One change observed is that older versions containerd depended on an older
version of imgcrypt that had an "indirect" dependency on more current versions
of gopkg.in/yaml.v2 and prometheus/procfs.

For those, a temporary "indirect" dependency was added, until prometheus/client_golang
and kubernetes are updated.

from go mod graph (before):

    github.com/containerd/[email protected] gopkg.in/[email protected]
    github.com/containerd/[email protected] github.com/prometheus/[email protected]

For some reason, some older versions of containerd are still taken into account,
causing satori/go.uuid to be added as "indirect" dependency, likely because some
modules have this dependency in their go.sum. This should likely disappear once
those plugins are updated to contain a current version of containerd.

    git grep 'github.com/satori/go.uuid'
    vendor/github.com/Microsoft/hcsshim/go.sum:github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0=
    vendor/github.com/containerd/aufs/go.sum:github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0=
    vendor/github.com/containerd/imgcrypt/go.sum:github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0=
    vendor/github.com/containerd/nri/go.sum:github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0=
    vendor/github.com/containerd/zfs/go.sum:github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0=

Signed-off-by: Sebastiaan van Stijn <[email protected]>
(cherry picked from commit e26fc84)
Signed-off-by: Sebastiaan van Stijn <[email protected]>
…oop_da_loop

[release/1.5] go.mod: cut circular dependency on github.com/containerd/containerd
@mikebrow
Copy link
Copy Markdown
Member Author

/cc @AkihiroSuda @lumjjb

@mikebrow mikebrow added this to the 1.5.1 milestone May 13, 2021
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented May 13, 2021

Build succeeded.

@mikebrow
Copy link
Copy Markdown
Member Author

mikebrow commented May 13, 2021

...mirror.gcr.io/library/alpine:latest: not found

hurts my head :-)

Copy link
Copy Markdown
Contributor

@lumjjb lumjjb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mikebrow mikebrow force-pushed the release-binary-update-for-imgcrypt branch from 099fb14 to 3157392 Compare May 13, 2021 20:57
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented May 13, 2021

Build succeeded.

@dmcgowan dmcgowan merged commit fe5d349 into containerd:master May 13, 2021
@thaJeztah thaJeztah added cherry-picked/1.5.x PR commits are cherry-picked into release/1.5 branch and removed cherry-pick/1.5.x labels Jul 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cherry-picked/1.5.x PR commits are cherry-picked into release/1.5 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants