Commit Graph

10422 Commits

Author SHA1 Message Date
Derek McGowan
a1ba38056e
Update caching logic to avoid map access
Signed-off-by: Derek McGowan <derek@mcg.dev>
2022-01-11 22:11:15 -08:00
Iceber Gu
ce3871966e
services/introspection: support to show introspection grpc service
Signed-off-by: Iceber Gu <wei.cai-nat@daocloud.io>
2022-01-11 22:11:15 -08:00
Derek McGowan
30a60663ff
Merge pull request #6397 from aznashwan/windows-integration-gcloud-auth-action 2022-01-11 21:47:29 -08:00
Derek McGowan
a018ae3f60
Prepare release notes for v1.6.0-rc.0
Signed-off-by: Derek McGowan <derek@mcg.dev>
2022-01-11 19:03:38 -08:00
Nashwan Azhari
9197971638 Integration: Switch to upload-cloud-storage Gcloud action.
Switch to using the new `google-github-actions/upload-cloud-storage`
GitHub action for uploading the CI results for the Windows Periodic
Tests.

Signed-off-by: Nashwan Azhari <nazhari@cloudbasesolutions.com>
2022-01-12 03:02:33 +02:00
Nashwan Azhari
8a2b61356d Integration: Switch to using auth Gcloud action in Windows workflow.
Following the forking of `github-google-actions/setup-gcloud` into
individual actions, the functionality for authenticating on Google
Cloud within GitHub workflows has been moved to the
`github-google-actions/auth` action.

This patch updates the Windows Periodic Integration test workflow to use
the new `auth` action, as well as switching to using Workload Identity
Federation-based authorization which is superseding the Service Account
Key-based authorization the Windows Periodic workflow was using thus far.

Signed-off-by: Nashwan Azhari <nazhari@cloudbasesolutions.com>
2022-01-12 03:02:17 +02:00
Derek McGowan
bce18cb04f
Merge pull request #6426 from ningmingxiao/dev6
remove io/ioutil
2022-01-11 13:42:45 -08:00
AdamKorcz
86d52fc265 Fuzzing: refactor metadata fuzzers
Signed-off-by: AdamKorcz <adam@adalogics.com>
2022-01-11 21:23:46 +00:00
Aurelien Lun-Sin
c0a31a7a40
Add ppc64 support for test images
Signed-off-by: Aurelien Lun-Sin <alunsin@us.ibm.com>
2022-01-11 19:58:31 +01:00
ning.a.li
a303d552ad ctr: Unify the delete subcommand alias
This commit unifies the following sub commands alias for
deleting/removing.
- containers
- tasks
- contents
- leases
- images
- snapshots

Signed-off-by: Ning Li <lining2020x@163.com>
2022-01-11 16:21:26 +08:00
宁明晓10296073
b35fb7d447 remove io/ioutil
Signed-off-by: ningmingxiao <ning.mingxiao@zte.com.cn>
2022-01-11 16:07:23 +08:00
Brian Goff
d05194f0a7 ctr: flag to toggle non-distributable blob push
With this flag, ctr will no longer automatically push non-distributable
artifacts by default.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
2022-01-11 00:49:40 +00:00
Brian Goff
f779890365 Add image handler to skip non-distributable blobs.
This makes it easy for share functionality across tools to prevent
pushing layers that are not supposed to be re-distributed.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
2022-01-11 00:49:36 +00:00
Kazuyoshi Kato
8c194d8f3d gha: run CodeQL scan on pull requests
CodeQL should run on pull requests to avoid post-merge surprises.

Signed-off-by: Kazuyoshi Kato <katokazu@amazon.com>
2022-01-10 11:28:32 -08:00
Phil Estes
62a4e7020d
Merge pull request #6418 from bobbypage/cgroupv2-cos-fix
test: e2e node COS cgroupv2 script
2022-01-10 11:07:14 -05:00
Phil Estes
4cbd366f9e
Merge pull request #6378 from aznashwan/windows-integration-enable-2022
Integration: Enable CRITest on Windows 2022.
2022-01-10 11:05:49 -05:00
Nashwan Azhari
f99e923592 Enable critest tests on Windows Server 2022.
Signed-off-by: Nashwan Azhari <nazhari@cloudbasesolutions.com>
2022-01-10 11:13:19 +02:00
Nashwan Azhari
55b89eabf5 Parametrize CRITest test images in Windows Periodic workflow.
This patch makes the Windows Periodic workflow pass specific test images
to CRITest. This will allow full control over the container images used
in workflow runs as opposed to relying on the hardcoded defaults in
`cri-tools` to be compatible with all the tested Windows releases.

Depends-On: https://github.com/kubernetes-sigs/cri-tools/pull/855

Signed-off-by: Nashwan Azhari <nazhari@cloudbasesolutions.com>
2022-01-10 11:13:19 +02:00
Akihiro Suda
35b96f9b1c
Merge pull request #6415 from dmcgowan/contrib-apparmor-cleanup
Update error message for apparmor parser
2022-01-10 16:40:57 +09:00
Fu Wei
e4bf68633e
Merge pull request #6419 from sachaos/feature/fix-wrong-log-message 2022-01-09 22:50:32 +08:00
Takumasa Sakao
18592b2f5a Fix wrong log message
Signed-off-by: Takumasa Sakao <tsakao@zlab.co.jp>
2022-01-09 16:01:23 +09:00
David Porter
bdc852190b test: e2e node COS cgroupv2 script
On newer COS M97 images, cgroupv2 is enabled out of the box. It is
enabled using default systemd configuration and does not have
`systemd.unified_cgroup_hierarchy` present `/proc/cmdline`. As a result, the
check for manual cgroupv2 enablement should be improved to not only check
`/proc/cmdline`, but also to see if it's enabled on the system using `stat
-fc %T /sys/fs/cgroup/`

Signed-off-by: David Porter <porterdavid@google.com>
2022-01-08 16:03:42 -08:00
Derek McGowan
ee326447e5
Merge pull request #6414 from dmcgowan/followup-errors-change
Followup errors change
2022-01-08 10:07:34 -08:00
Derek McGowan
468513820d
Merge pull request #6351 from adisky/update-k/k-1.23
Updates CRI API & Kubernetes to 1.23
2022-01-07 15:26:44 -08:00
Derek McGowan
9028832e41
Merge pull request #6416 from marosset/adopters-azure
Updating adoption of containerd for AKS
2022-01-07 15:07:28 -08:00
Mark Rossetti
e38946d865 Updating adoption of containerd for AKS
Signed-off-by: Mark Rossetti <marosset@microsoft.com>
2022-01-07 14:01:54 -08:00
Derek McGowan
c124253e05
Merge pull request #6413 from SergeyKanzhelev/patch-1
update the adoption status of containerd in GKE
2022-01-07 13:40:01 -08:00
Derek McGowan
647308bc47
Merge pull request #6410 from AkihiroSuda/update-go-mod-20220107
go.mod: update github.com/containerd/{continuity,go-cni,imgcrypt}
2022-01-07 12:34:44 -08:00
Derek McGowan
8aca314ddb
Update error message for apparmor parser
Signed-off-by: Derek McGowan <derek@mcg.dev>
2022-01-07 12:31:02 -08:00
Derek McGowan
48c7529de2
Fix incorrect error wrapped when closing ingest file
Signed-off-by: Derek McGowan <derek@mcg.dev>
2022-01-07 12:23:18 -08:00
Derek McGowan
0c2c289d4c
Fix seek error used without nil check
Signed-off-by: Derek McGowan <derek@mcg.dev>
2022-01-07 12:19:23 -08:00
Derek McGowan
8816006d1e
Fix followup items from errors replacement
Signed-off-by: Derek McGowan <derek@mcg.dev>
2022-01-07 12:16:00 -08:00
Derek McGowan
77d53d2d23
Merge pull request #6366 from jonyhy96/feat-errors-replace
replace github.com/pkg/errors with native errors
2022-01-07 12:13:29 -08:00
Sergey Kanzhelev
a94f32ce06 update the adoption status of containerd in GKE
Signed-off-by: Sergey Kanzhelev <S.Kanzhelev@live.com>
2022-01-07 20:08:10 +00:00
Sören Tempel
adee2c7974 seccomp: add support for "swapcontext" syscall in default policy
This system call is only available on 32- and 64-bit PowerPC, it is used
by modern programming language implementations to implement coroutine
features through userspace context switches.

moby [1] and systemd nspawn [2] already whitelist this system call so it
makes sense to whitelist it in containerd as well.

[1]: https://github.com/moby/moby/pull/43092
[2]: https://github.com/systemd/systemd/pull/9487

Signed-off-by: Sören Tempel <soeren+git@soeren-tempel.net>
2022-01-07 18:05:59 +01:00
Derek McGowan
72d2913c81
Merge pull request #6412 from jklippel/correct-link-in-documentation
corrected link in cri architecture documentation
2022-01-07 09:04:25 -08:00
Jan Klippel
4f0f363504 corrected link in cri architecture documentation
The referenced document was moved into the staging directory within the kubernetes repository

Signed-off-by: Jan Klippel <g1thub@kl1pp3l.de>
2022-01-07 14:58:37 +01:00
Akihiro Suda
d3724a6c17
go.mod: update github.com/containerd/{continuity,go-cni,imgcrypt}
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2022-01-07 18:54:15 +09:00
haoyun
bbe46b8c43 feat: replace github.com/pkg/errors to errors
Signed-off-by: haoyun <yun.hao@daocloud.io>
Co-authored-by: zounengren <zouyee1989@gmail.com>
2022-01-07 10:27:03 +08:00
Derek McGowan
3ccd43c8f6
Merge pull request #6396 from AkihiroSuda/refresh-token
remotes/docker: allow fetching "refresh token" (aka "identity token", "offline token")
2022-01-06 11:34:38 -08:00
Derek McGowan
857b35de6c
Merge pull request #6407 from dmcgowan/prepare-1.6.0-beta.5
Prepare release notes for v1.6.0-beta.5
2022-01-06 09:16:54 -08:00
Aditi Sharma
e43d4206af Update k/k to 1.23.0
Signed-off-by: Aditi Sharma <adi.sky17@gmail.com>
2022-01-06 11:18:23 +05:30
Derek McGowan
8d5af6be80
Prepare release notes for v1.6.0-beta.5
Signed-off-by: Derek McGowan <derek@mcg.dev>
2022-01-05 12:05:49 -08:00
Phil Estes
1b8af3752d
Merge pull request #6292 from aznashwan/windows-integration-conditional-artefact-upload
Integration: Check GCP secrets on Windows CI artifact upload.
2022-01-05 12:37:40 -05:00
Derek McGowan
644a01e13b
Merge pull request from GHSA-mvff-h3cj-wj9c
only relabel cri managed host mounts
2022-01-05 09:30:58 -08:00
Derek McGowan
8937012208
Merge pull request #5439 from marquiz/devel/rdt
Add support for Intel RDT
2022-01-04 10:15:25 -08:00
Markus Lehtonen
9c2e3835fa cri: add ignore_rdt_not_enabled_errors config option
Enabling this option effectively causes RDT class of a container to be a
soft requirement. If RDT support has not been enabled the RDT class
setting will not have any effect.

Signed-off-by: Markus Lehtonen <markus.lehtonen@intel.com>
2022-01-04 09:27:54 +02:00
Markus Lehtonen
eba1048163 Update dependencies
Signed-off-by: Markus Lehtonen <markus.lehtonen@intel.com>
2022-01-04 09:27:54 +02:00
Markus Lehtonen
f4a191917b cri: annotations for controlling RDT class
Use goresctrl for parsing container and pod annotations related to RDT.

In practice, from the users' point of view, this patchs adds support for
a container annotation and two separate pod annotations for controlling
the RDT class of containers.

Container annotation can be used by a CRI client:
  "io.kubernetes.cri.rdt-class"

Pod annotations for specifying the RDT class in the K8s pod spec level:
  "rdt.resources.beta.kubernetes.io/pod"
  (pod-wide default for all containers within)

  "rdt.resources.beta.kubernetes.io/container.<container_name>"
  (container-specific overrides)

Annotations are intended as an intermediate step before the CRI API
supports RDT.

Signed-off-by: Markus Lehtonen <markus.lehtonen@intel.com>
2022-01-04 09:27:54 +02:00
Markus Lehtonen
eae14688c6 tasks: add Linux rdt support
Add support for configuring the Linux resctrl pseudo-filesystem with
goresctrl library. The functionality is integrated in the
"io.containerd.service.v1.tasks-service" plugin.

Signed-off-by: Markus Lehtonen <markus.lehtonen@intel.com>
2022-01-04 09:27:54 +02:00