Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
7783f58
update to new cri-tools make install
mikebrow May 6, 2021
c48044f
Merge pull request #5471 from mikebrow/1.5_cherrypick_correct-critool…
dmcgowan May 10, 2021
50d371e
Makefile: allow overriding go command by environment
metux May 4, 2021
3a86110
Update Go to 1.16.4
tao12345666333 May 6, 2021
423cd40
Merge pull request #5474 from dmcgowan/1.5-cherry-pick-build-updates
AkihiroSuda May 10, 2021
384b05a
Update the runc binary used with containerd to runc v1.0.0-rc94
dims May 10, 2021
b60331a
Merge pull request #5483 from thaJeztah/1.5_backport_bump_runc
AkihiroSuda May 11, 2021
5e742ea
Fix different registry hosts referencing the same auth config.
Random-Liu May 4, 2021
eebc914
Merge pull request #5447 from Random-Liu/cherrypick-#5446-release-1.5
estesp May 12, 2021
aeee093
adds description for hosts.toml
mikebrow Apr 6, 2021
042e49f
adds credentials description
mikebrow May 4, 2021
07bde83
Merge pull request #5494 from dmcgowan/backport-1.5-host-documentation
AkihiroSuda May 12, 2021
109d657
Pin integration test image for alpine
dmcgowan May 13, 2021
799eef8
Merge pull request #5500 from dmcgowan/1.5-backport-integration-pin-i…
dmcgowan May 13, 2021
47507a6
just release ctd-decoder not ctr-enc
mikebrow May 13, 2021
38deecc
Merge pull request #5501 from dmcgowan/backport-imgcrypt-binary-relea…
mikebrow May 13, 2021
c31e19a
Prepare release notes for v1.5.1
dmcgowan May 12, 2021
12dca97
Merge pull request #5495 from dmcgowan/prepare-1.5.1
dmcgowan May 13, 2021
ccfb9c5
update runc binary to v1.0.0-rc95
AkihiroSuda May 19, 2021
55c147d
Merge pull request #5512 from AkihiroSuda/runc-rc95-15
estesp May 19, 2021
354f729
Prepare release notes for v1.5.2
dmcgowan May 19, 2021
36cc874
Merge pull request #5515 from dmcgowan/prepare-1.5.2
dmcgowan May 19, 2021
cba7b44
windows: Use GetFinalPathNameByHandle for ResolveSymbolicLink
kevpar Apr 27, 2021
d1119dc
Merge pull request #5537 from kevpar/symlink-1.5
dmcgowan May 27, 2021
3fd01c4
Change Wrapf of non-error to an actual error
estesp Jun 2, 2021
9a57390
Merge pull request #5567 from estesp/cp-5560-1.5
fuweid Jun 4, 2021
d31f5e6
fix invalid validation error checking
mikebrow Jun 3, 2021
bf16e9e
Merge pull request #5581 from mikebrow/cherrypick-#5565-release-1.5
fuweid Jun 9, 2021
b441ec1
Add proper Go version before project checks
estesp Jun 10, 2021
f5f2b68
Merge pull request #5596 from estesp/go-for-proj-1.5
mikebrow Jun 10, 2021
31ecdf7
Fix cleanup context of teardownPodNetwork
tnqn Jun 4, 2021
3735a7d
Fix incorrect UA used for registry authentication
Einsfier May 26, 2021
d8b6682
Merge pull request #5593 from tnqn/release/1.5
estesp Jun 11, 2021
116b2e0
Merge pull request #5598 from povsister/release/1.5
estesp Jun 11, 2021
9d88808
content/local: inline sys.StatATimeAsTime()
thaJeztah Jun 22, 2021
8098a6e
Merge pull request #5634 from thaJeztah/1.5_backport_inline_statatime…
crosbymichael Jun 22, 2021
a2dc682
sandbox: send pod UID to CNI plugins as K8S_POD_UID
dcbw Jun 23, 2021
9b71425
Merge pull request #5643 from dcbw/15-cni-plugin-pod-uid
estesp Jun 23, 2021
78b95df
update runc binary to v1.0.0 GA
AkihiroSuda Jun 11, 2021
9be04c2
Merge pull request #5650 from thaJeztah/1.5_backport_bump_runc
estesp Jun 24, 2021
37a44de
Cleanup lchmod logic in archive
dmcgowan Jul 7, 2021
f5c7cb6
Add test for archive breakout test for lchmod
dmcgowan Jul 6, 2021
0515f9d
Fix missing Body.Close() calls on push to docker remote
coryb Jul 11, 2021
a695a07
[Vendor] Update hcsshim to 0.8.18
dcantah Jun 30, 2021
d4afc82
Merge pull request #5718 from thaJeztah/1.5_backport_docker_push_clos…
dmcgowan Jul 12, 2021
911cd57
Merge pull request #5715 from dcantah/backport-hcsshim-0.8.18
dmcgowan Jul 13, 2021
385d9ed
Update Go to 1.16.6
AkihiroSuda Jul 13, 2021
ac7bd54
Update Go to 1.16.6 (cont.)
AkihiroSuda Jul 13, 2021
43d0892
integration/client: go mod tidy
AkihiroSuda Jul 13, 2021
4b72407
Merge pull request #5723 from AkihiroSuda/go1.16.6-15
dmcgowan Jul 13, 2021
defaec6
Update mailmap
dmcgowan Jul 13, 2021
48d7a5c
Prepare release notes for 1.5.3
dmcgowan Jul 12, 2021
0e8719f
Merge pull request #5719 from dmcgowan/prepare-1.5.3
dmcgowan Jul 13, 2021
d9b284b
Try next mirror in case of non-404 errors, too
haslersn Mar 26, 2021
7ad08c6
Merge pull request from GHSA-c72p-9xmj-rx3w
dmcgowan Jul 19, 2021
81cfab8
Prepare release notes for v1.5.4
dmcgowan Jul 19, 2021
69107e4
Merge pull request #5758 from dmcgowan/prepare-1.5.4
dmcgowan Jul 19, 2021
6807d07
update runc binary to v1.0.1
AkihiroSuda Jul 18, 2021
d2cb994
go.mod: runc v1.0.1
AkihiroSuda Jul 19, 2021
c355601
Merge pull request #5752 from AkihiroSuda/runc-v1.0.1-15
estesp Jul 20, 2021
47d0f52
Merge pull request #5747 from fuweid/cp-15-5275
estesp Jul 20, 2021
166a81f
snapshot/devmapper: log exported methods correctly
Jun 24, 2021
4c1722e
Update docker resolver to authorize redirects
dmcgowan May 14, 2021
bc12da7
Merge pull request #5766 from thaJeztah/1.5_backport_fix_authorizatio…
dmcgowan Jul 20, 2021
2f11d58
remotes/docker/fetcher.go: Fix missing Close()
wzshiming Jul 21, 2021
7b17268
remotes/docker/pusher.go: Fix missing Close()
wzshiming Jul 21, 2021
8837501
Merge pull request #5772 from thaJeztah/1.5_backport_fix_missing_body…
dmcgowan Jul 21, 2021
1c13c54
Merge pull request #5764 from thaJeztah/1.5_backport_dm_log
dmcgowan Jul 21, 2021
677fade
Prepare release notes for v1.5.5
dmcgowan Jul 29, 2021
72cec4b
Merge pull request #5805 from dmcgowan/prepare-1.5.5
dmcgowan Jul 29, 2021
fa9b8db
expose devmapper snapshot device IDs in stat routine
amohoste Nov 25, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
25 changes: 17 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

strategy:
matrix:
go-version: [1.16.3]
go-version: [1.16.6]
os: [ubuntu-18.04, macos-10.15, windows-2019]

steps:
Expand Down Expand Up @@ -49,6 +49,15 @@ jobs:
timeout-minutes: 5

steps:
- uses: actions/setup-go@v2
with:
go-version: '1.16.6'

- shell: bash
run: |
echo "GOPATH=${{ github.workspace }}" >> $GITHUB_ENV
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH

- uses: actions/checkout@v2
with:
path: src/github.com/containerd/containerd
Expand All @@ -73,7 +82,7 @@ jobs:
steps:
- uses: actions/setup-go@v2
with:
go-version: '1.16.3'
go-version: '1.16.6'

- uses: actions/checkout@v2
with:
Expand Down Expand Up @@ -106,7 +115,7 @@ jobs:
steps:
- uses: actions/setup-go@v2
with:
go-version: '1.16.3'
go-version: '1.16.6'

- name: Set env
shell: bash
Expand Down Expand Up @@ -152,7 +161,7 @@ jobs:
steps:
- uses: actions/setup-go@v2
with:
go-version: '1.16.3'
go-version: '1.16.6'
- name: Set env
shell: bash
run: |
Expand Down Expand Up @@ -217,7 +226,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-18.04, macos-10.15, windows-2019]
go-version: ['1.16.3']
go-version: ['1.16.6']
include:
# Go 1.13.x is still used by Docker/Moby
- go-version: '1.13.x'
Expand Down Expand Up @@ -263,7 +272,7 @@ jobs:
steps:
- uses: actions/setup-go@v2
with:
go-version: '1.16.3'
go-version: '1.16.6'

- uses: actions/checkout@v2
with:
Expand Down Expand Up @@ -344,7 +353,7 @@ jobs:
steps:
- uses: actions/setup-go@v2
with:
go-version: '1.16.3'
go-version: '1.16.6'

- uses: actions/checkout@v2
with:
Expand Down Expand Up @@ -495,7 +504,7 @@ jobs:
steps:
- uses: actions/setup-go@v2
with:
go-version: '1.16.3'
go-version: '1.16.6'

- uses: actions/checkout@v2
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
steps:
- uses: actions/setup-go@v2
with:
go-version: '1.16.3'
go-version: '1.16.6'

- uses: actions/checkout@v2
with:
Expand Down Expand Up @@ -135,7 +135,7 @@ jobs:
steps:
- uses: actions/setup-go@v2
with:
go-version: '1.16.3'
go-version: '1.16.6'

- uses: actions/checkout@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: '1.16.3'
go-version: '1.16.6'

- name: Set env
shell: bash
Expand Down
1 change: 1 addition & 0 deletions .mailmap
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Cao Zhihao <caozhihao@163.com>
Cao Zhihao <caozhihao@163.com> <caozhihao.xd@bytedance.com>
Carlos Eduardo <me@carlosedp.com> <me@carlosedp.com>
chenxiaoyu <weixian.cxy@alibaba-inc.com>
Cory Bennett <cbennett@netflix.com>
Cristian Staretu <cristian.staretu@gmail.com>
Cristian Staretu <cristian.staretu@gmail.com> <unclejack@users.noreply.github.com>
Daniel Dao <dqminh89@gmail.com>
Expand Down
2 changes: 1 addition & 1 deletion .zuul/playbooks/containerd-build/integration-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
become: yes
roles:
- role: config-golang
go_version: '1.16.3'
go_version: '1.16.6'
arch: arm64
tasks:
- name: Install pre-requisites
Expand Down
2 changes: 1 addition & 1 deletion .zuul/playbooks/containerd-build/run.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
become: yes
roles:
- role: config-golang
go_version: '1.16.3'
go_version: '1.16.6'
arch: arm64
tasks:
- name: Build containerd
Expand Down
2 changes: 1 addition & 1 deletion .zuul/playbooks/containerd-build/unit-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
become: yes
roles:
- role: config-golang
go_version: '1.16.3'
go_version: '1.16.6'
arch: arm64
tasks:
- name: Build and test containerd
Expand Down
47 changes: 25 additions & 22 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
# limitations under the License.


# Go command to use for build
GO ?= go

# Root directory of the project (absolute path).
ROOTDIR=$(dir $(abspath $(lastword $(MAKEFILE_LIST))))

Expand All @@ -26,9 +29,9 @@ REVISION=$(shell git rev-parse HEAD)$(shell if ! git diff --no-ext-diff --quiet
PACKAGE=github.com/containerd/containerd
SHIM_CGO_ENABLED ?= 0

ifneq "$(strip $(shell command -v go 2>/dev/null))" ""
GOOS ?= $(shell go env GOOS)
GOARCH ?= $(shell go env GOARCH)
ifneq "$(strip $(shell command -v $(GO) 2>/dev/null))" ""
GOOS ?= $(shell $(GO) env GOOS)
GOARCH ?= $(shell $(GO) env GOARCH)
else
ifeq ($(GOOS),)
# approximate GOOS for the platform if we don't have Go and GOOS isn't
Expand Down Expand Up @@ -85,7 +88,7 @@ GO_LDFLAGS=-ldflags '-X $(PKG)/version.Version=$(VERSION) -X $(PKG)/version.Revi
SHIM_GO_LDFLAGS=-ldflags '-X $(PKG)/version.Version=$(VERSION) -X $(PKG)/version.Revision=$(REVISION) -X $(PKG)/version.Package=$(PACKAGE) -extldflags "-static" $(EXTRA_LDFLAGS)'

# Project packages.
PACKAGES=$(shell go list ${GO_TAGS} ./... | grep -v /vendor/ | grep -v /integration)
PACKAGES=$(shell $(GO) list ${GO_TAGS} ./... | grep -v /vendor/ | grep -v /integration)
TEST_REQUIRES_ROOT_PACKAGES=$(filter \
${PACKAGES}, \
$(shell \
Expand Down Expand Up @@ -122,7 +125,7 @@ TESTFLAGS ?= $(TESTFLAGS_RACE) $(EXTRA_TESTFLAGS)
TESTFLAGS_PARALLEL ?= 8

# Use this to replace `go test` with, for instance, `gotestsum`
GOTEST ?= go test
GOTEST ?= $(GO) test

OUTPUTDIR = $(join $(ROOTDIR), _output)
CRIDIR=$(OUTPUTDIR)/cri
Expand All @@ -143,7 +146,7 @@ AUTHORS: .mailmap .git/HEAD

generate: protos
@echo "$(WHALE) $@"
@PATH="${ROOTDIR}/bin:${PATH}" go generate -x ${PACKAGES}
@PATH="${ROOTDIR}/bin:${PATH}" $(GO) generate -x ${PACKAGES}

protos: bin/protoc-gen-gogoctrd ## generate protobuf
@echo "$(WHALE) $@"
Expand All @@ -170,7 +173,7 @@ proto-fmt: ## check format of proto files

build: ## build the go packages
@echo "$(WHALE) $@"
@go build ${DEBUG_GO_GCFLAGS} ${GO_GCFLAGS} ${GO_BUILD_FLAGS} ${EXTRA_FLAGS} ${GO_LDFLAGS} ${PACKAGES}
@$(GO) build ${DEBUG_GO_GCFLAGS} ${GO_GCFLAGS} ${GO_BUILD_FLAGS} ${EXTRA_FLAGS} ${GO_LDFLAGS} ${PACKAGES}

test: ## run tests, except integration tests and tests that require root
@echo "$(WHALE) $@"
Expand All @@ -182,12 +185,12 @@ root-test: ## run tests, except integration tests

integration: ## run integration tests
@echo "$(WHALE) $@"
@cd "${ROOTDIR}/integration/client" && go mod download && $(GOTEST) -v ${TESTFLAGS} -test.root -parallel ${TESTFLAGS_PARALLEL} .
@cd "${ROOTDIR}/integration/client" && $(GO) mod download && $(GOTEST) -v ${TESTFLAGS} -test.root -parallel ${TESTFLAGS_PARALLEL} .

# TODO integrate cri integration bucket with coverage
bin/cri-integration.test:
@echo "$(WHALE) $@"
@go test -c ./integration -o bin/cri-integration.test
@$(GO) test -c ./integration -o bin/cri-integration.test

cri-integration: binaries bin/cri-integration.test ## run cri integration tests
@echo "$(WHALE) $@"
Expand All @@ -196,13 +199,13 @@ cri-integration: binaries bin/cri-integration.test ## run cri integration tests

benchmark: ## run benchmarks tests
@echo "$(WHALE) $@"
@go test ${TESTFLAGS} -bench . -run Benchmark -test.root
@$(GO) test ${TESTFLAGS} -bench . -run Benchmark -test.root

FORCE:

define BUILD_BINARY
@echo "$(WHALE) $@"
@go build ${DEBUG_GO_GCFLAGS} ${GO_GCFLAGS} ${GO_BUILD_FLAGS} -o $@ ${GO_LDFLAGS} ${GO_TAGS} ./$<
@$(GO) build ${DEBUG_GO_GCFLAGS} ${GO_GCFLAGS} ${GO_BUILD_FLAGS} -o $@ ${GO_LDFLAGS} ${GO_TAGS} ./$<
endef

# Build a binary from a cmd.
Expand All @@ -211,15 +214,15 @@ bin/%: cmd/% FORCE

bin/containerd-shim: cmd/containerd-shim FORCE # set !cgo and omit pie for a static shim build: https://github.com/golang/go/issues/17789#issuecomment-258542220
@echo "$(WHALE) bin/containerd-shim"
@CGO_ENABLED=${SHIM_CGO_ENABLED} go build ${GO_BUILD_FLAGS} -o bin/containerd-shim ${SHIM_GO_LDFLAGS} ${GO_TAGS} ./cmd/containerd-shim
@CGO_ENABLED=${SHIM_CGO_ENABLED} $(GO) build ${GO_BUILD_FLAGS} -o bin/containerd-shim ${SHIM_GO_LDFLAGS} ${GO_TAGS} ./cmd/containerd-shim

bin/containerd-shim-runc-v1: cmd/containerd-shim-runc-v1 FORCE # set !cgo and omit pie for a static shim build: https://github.com/golang/go/issues/17789#issuecomment-258542220
@echo "$(WHALE) bin/containerd-shim-runc-v1"
@CGO_ENABLED=${SHIM_CGO_ENABLED} go build ${GO_BUILD_FLAGS} -o bin/containerd-shim-runc-v1 ${SHIM_GO_LDFLAGS} ${GO_TAGS} ./cmd/containerd-shim-runc-v1
@CGO_ENABLED=${SHIM_CGO_ENABLED} $(GO) build ${GO_BUILD_FLAGS} -o bin/containerd-shim-runc-v1 ${SHIM_GO_LDFLAGS} ${GO_TAGS} ./cmd/containerd-shim-runc-v1

bin/containerd-shim-runc-v2: cmd/containerd-shim-runc-v2 FORCE # set !cgo and omit pie for a static shim build: https://github.com/golang/go/issues/17789#issuecomment-258542220
@echo "$(WHALE) bin/containerd-shim-runc-v2"
@CGO_ENABLED=${SHIM_CGO_ENABLED} go build ${GO_BUILD_FLAGS} -o bin/containerd-shim-runc-v2 ${SHIM_GO_LDFLAGS} ${GO_TAGS} ./cmd/containerd-shim-runc-v2
@CGO_ENABLED=${SHIM_CGO_ENABLED} $(GO) build ${GO_BUILD_FLAGS} -o bin/containerd-shim-runc-v2 ${SHIM_GO_LDFLAGS} ${GO_TAGS} ./cmd/containerd-shim-runc-v2

binaries: $(BINARIES) ## build binaries
@echo "$(WHALE) $@"
Expand All @@ -235,11 +238,11 @@ genman: man/containerd.8 man/ctr.8

man/containerd.8: FORCE
@echo "$(WHALE) $@"
go run cmd/gen-manpages/main.go $(@F) $(@D)
$(GO) run cmd/gen-manpages/main.go $(@F) $(@D)

man/ctr.8: FORCE
@echo "$(WHALE) $@"
go run cmd/gen-manpages/main.go $(@F) $(@D)
$(GO) run cmd/gen-manpages/main.go $(@F) $(@D)

man/%: docs/man/%.md FORCE
@echo "$(WHALE) $@"
Expand Down Expand Up @@ -365,9 +368,9 @@ endif
coverage: ## generate coverprofiles from the unit tests, except tests that require root
@echo "$(WHALE) $@"
@rm -f coverage.txt
@go test -i ${TESTFLAGS} ${PACKAGES} 2> /dev/null
@$(GO) test -i ${TESTFLAGS} ${PACKAGES} 2> /dev/null
@( for pkg in ${PACKAGES}; do \
go test ${TESTFLAGS} \
$(GO) test ${TESTFLAGS} \
-cover \
-coverprofile=profile.out \
-covermode=atomic $$pkg || exit; \
Expand All @@ -379,9 +382,9 @@ coverage: ## generate coverprofiles from the unit tests, except tests that requi

root-coverage: ## generate coverage profiles for unit tests that require root
@echo "$(WHALE) $@"
@go test -i ${TESTFLAGS} ${TEST_REQUIRES_ROOT_PACKAGES} 2> /dev/null
@$(GO) test -i ${TESTFLAGS} ${TEST_REQUIRES_ROOT_PACKAGES} 2> /dev/null
@( for pkg in ${TEST_REQUIRES_ROOT_PACKAGES}; do \
go test ${TESTFLAGS} \
$(GO) test ${TESTFLAGS} \
-cover \
-coverprofile=profile.out \
-covermode=atomic $$pkg -test.root || exit; \
Expand All @@ -393,8 +396,8 @@ root-coverage: ## generate coverage profiles for unit tests that require root

vendor: ## vendor
@echo "$(WHALE) $@"
@go mod tidy
@go mod vendor
@$(GO) mod tidy
@$(GO) mod vendor

help: ## this help
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST) | sort
2 changes: 1 addition & 1 deletion Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ Vagrant.configure("2") do |config|
config.vm.provision "install-golang", type: "shell", run: "once" do |sh|
sh.upload_path = "/tmp/vagrant-install-golang"
sh.env = {
'GO_VERSION': ENV['GO_VERSION'] || "1.16.3",
'GO_VERSION': ENV['GO_VERSION'] || "1.16.6",
}
sh.inline = <<~SHELL
#!/usr/bin/env bash
Expand Down
Loading