Phil Estes
584110f0b6
Merge pull request #7210 from mxpv/image-list
...
Use image lists form integration/client tests
2022-07-26 12:09:41 -04:00
Fu Wei
4c1f0cb473
Merge pull request #7212 from dcantah/hcsshim-bumps-0.9.4
2022-07-26 09:53:43 +08:00
Maksym Pavlenko
2b92c70fa4
Fix command line parsing for image list
...
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2022-07-25 14:19:40 -07:00
Daniel Canter
14003683f0
go.mod: Bump hcsshim to v0.9.4
...
This tag contains some fixes for hostprocess containers, mainly around
fixing task stats which regressed from a change in v0.9.3.
https://github.com/microsoft/hcsshim/releases/tag/v0.9.4
Signed-off-by: Daniel Canter <dcanter@microsoft.com>
2022-07-25 13:24:34 -07:00
Daniel Canter
c15d8e1560
go.mod: Bump hcsshim to 0.9.3
...
This tag brings in a new field to fix an HNS issue in ws2019 as well as
an optimization for collecting Windows stats (memory, cpu, iops).
Signed-off-by: Daniel Canter <dcanter@microsoft.com>
2022-07-25 13:03:39 -07:00
Maksym Pavlenko
a9514da757
Update image references for Windows tests
...
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2022-07-25 11:04:59 -07:00
Maksym Pavlenko
2ae5f405d2
Use image lists instead of hardcoded images
...
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2022-07-25 10:54:17 -07:00
Maksym Pavlenko
552d763447
Use image lists in client tests
...
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2022-07-25 10:47:00 -07:00
Akihiro Suda
db3ecb286b
Merge pull request #7203 from jeffwidman/drop-deprecated-ioutil
...
Drop deprecated `ioutil`
2022-07-24 03:18:04 +09:00
Jeff Widman
050cd58ce6
Drop deprecated ioutil
...
`ioutil` has been deprecated by golang. All the code in `ioutil` just
forwards functionality to code in either the `io` or `os` packages.
See https://github.com/golang/go/pull/51961 for more info.
Signed-off-by: Jeff Widman <jeff@jeffwidman.com>
2022-07-23 08:36:20 -07:00
Fu Wei
b0b9c0fb3f
Merge pull request #7201 from mxpv/service-opts
2022-07-23 16:54:28 +08:00
Maksym Pavlenko
500ff95f02
Make getServicesOpts a helper
...
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2022-07-22 19:38:45 -07:00
Fu Wei
294c61fbab
Merge pull request #7183 from mikebrow/add-service-environment-for-sandboxed
2022-07-23 10:20:39 +08:00
Mike Brown
ee6fc5c2ef
adds an env var commented out for sandboxed mode
...
Signed-off-by: Mike Brown <brownwm@us.ibm.com>
2022-07-22 17:13:25 -05:00
Fu Wei
05a71fdc28
Merge pull request #7198 from endocrimes/dani/fix-panic
2022-07-22 23:23:45 +08:00
Danielle Lancashire
3125f7e1a0
cri_stats: handle missing cpu stats
...
Signed-off-by: Danielle Lancashire <dani@builds.terrible.systems>
2022-07-22 12:10:24 +00:00
Fu Wei
badb66113c
Merge pull request #7189 from zouyee/ctx
2022-07-22 11:09:02 +08:00
Mike Brown
f7bba3a751
Merge pull request #7173 from bobbypage/cgroup_e2e
...
test: Add ability to switch between cgroupv1 or cgroupv2 for node e2e
2022-07-20 20:46:04 -05:00
Derek McGowan
24aad6dd46
Merge pull request #7182 from HeavenTonight/main
...
code cleanup
2022-07-20 13:09:10 -07:00
Derek McGowan
1455926416
Merge pull request #7114 from kinvolk/rata/userns-cri
...
Update k8s.io/cri-api to v0.25.0-alpha2
2022-07-20 13:06:58 -07:00
Derek McGowan
f1eced563e
Merge pull request #7186 from jsturtevant/windows-usage-nano-cores
...
Refactor usageNanoCores be to used for all OSes
2022-07-20 13:04:56 -07:00
Derek McGowan
0e6e05a0e8
Merge pull request #7191 from mikebrow/add-containerd.env-for-sbsandbox-mode-test
...
adds support for using env file for systemd boot
2022-07-20 13:04:35 -07:00
Kazuyoshi Kato
0d61fba052
Merge pull request #7185 from AkihiroSuda/testify-1.8.0
...
go.mod: github.com/stretchr/testify v1.8.0
2022-07-20 11:51:36 -07:00
Mike Brown
7eeec8987f
adds support for using env file for systemd boot
...
Signed-off-by: Mike Brown <brownwm@us.ibm.com>
2022-07-20 12:52:10 -05:00
zounengren
7dc66eee64
using ContextDialer instead
...
Signed-off-by: zounengren <zouyee1989@gmail.com>
2022-07-20 22:53:42 +08:00
David Porter
6639b2b028
test: Add ability to switch between cgroupv1 or cgroupv2
...
For k8s e2e node tests, we want to be able to test both cgroupv1 and
cgroupv2 variants. Currently, the latest version of COS (M97) is running
as cgroupv2 and we would like the add the ability to switch to cgroupv1
for running tests on cgroupv1.
To do this, add a new flag, "CGROUP_MODE" which can be set as v1 or v2.
If the current cgroup configuration does not match the desired config,
the cgroup config will be set via `cgroup_helper` COS utility, and the
node will be rebooted.
Signed-off-by: David Porter <porterdavid@google.com>
2022-07-19 17:51:41 -07:00
James Sturtevant
0d6881898e
Refactor usageNanoCores be to used for all OSes
...
Signed-off-by: James Sturtevant <jstur@microsoft.com>
2022-07-19 16:49:08 -07:00
Akihiro Suda
f6bc986dc1
go.mod: github.com/stretchr/testify v1.8.0
...
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2022-07-20 08:36:10 +09:00
Derek McGowan
79fcc38b11
Merge pull request #7145 from junnplus/ctr-user
...
ctr: support --user for run/create
2022-07-19 13:07:37 -07:00
guiyong.ou
628f6ac681
code cleanup
...
Signed-off-by: guiyong.ou <guiyong.ou@daocloud.io>
2022-07-19 22:46:32 +08:00
Derek McGowan
11ded166c1
Merge pull request #7174 from oradwell/patch-1
...
docs: Fix sample config.toml syntax
2022-07-18 15:20:18 -07:00
Derek McGowan
e95858f93f
Merge pull request #7163 from thaJeztah/seccomp_support_pku
...
seccomp: seccomp: add syscalls related to PKU in default policy
2022-07-18 15:19:10 -07:00
Maksym Pavlenko
e69a83f356
Merge pull request #7168 from mxpv/linter
...
Update and align golangci-lint version
2022-07-18 12:23:06 -07:00
Maksym Pavlenko
8e66388f52
Merge pull request #7169 from mikebrow/test-sbsandbox
...
adds a comment explaining how to disable experimental sbserver
2022-07-18 12:22:28 -07:00
Derek McGowan
0bbba90480
Merge pull request #7177 from kzys/fix-cirrus
...
ci: workaround Cirrus CI's INVALID_ARGUMENT
2022-07-18 12:05:14 -07:00
Kazuyoshi Kato
cc30880e84
ci: workaround Cirrus CI's INVALID_ARGUMENT
...
We are constantly getting the message below from Cirrus CI;
> Machine type with name 'c2-standard-2' does not exist in zone 'us-central1-c'."
Seems Cirrus CI is constructing the machine type based on
the "cpu" field from the YAML file. However c2-standard's minimal vCPU
count is 4 based on the official document below.
https://cloud.google.com/compute/docs/compute-optimized-machines
Signed-off-by: Kazuyoshi Kato <katokazu@amazon.com>
2022-07-18 17:48:25 +00:00
Oliver Radwell
d8d63a7aa3
docs: Fix sample config.toml syntax
...
Signed-off-by: Oliver Radwell <oliver.radwell@gmail.com>
2022-07-16 21:56:07 +01:00
Mike Brown
88bcbb0361
adds a comment explaining how to disable experimental sbserver
...
Signed-off-by: Mike Brown <brownwm@us.ibm.com>
2022-07-15 17:00:56 -05:00
Maksym Pavlenko
3a3f43f72f
Fix linter warnings
...
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2022-07-15 13:29:04 -07:00
Maksym Pavlenko
60f51c1aa3
Update and align golangci-lint version
...
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2022-07-15 13:22:06 -07:00
Fu Wei
e4fefea554
Merge pull request #7153 from mxpv/install-protobuf
2022-07-15 15:44:29 +08:00
Fu Wei
c0f0627319
Merge pull request #7164 from mxpv/cri-fork
2022-07-15 15:19:28 +08:00
Maksym Pavlenko
98a1b7ff1b
Add log messages when choosing CRI server
...
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2022-07-14 09:12:35 -07:00
Phil Estes
470ebf4499
Merge pull request #7167 from thaJeztah/seccomp_sys_nice
...
seccomp: add get_mempolicy, mbind, set_mempolicy, with CAP_SYS_NICE
2022-07-14 11:54:19 -04:00
Sebastiaan van Stijn
bbb8d34704
seccomp: add get_mempolicy, mbind, set_mempolicy, with CAP_SYS_NICE
...
This aligns the profile with docker's profile, which added this in
47dfff68e4
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2022-07-14 10:39:55 +02:00
Samuel Karp
bb6278749e
Merge pull request #7158 from bart0sh/PR003-fix-cdi-doc-formatting
2022-07-13 23:17:23 -07:00
Fu Wei
b3eb85a344
Merge pull request #7159 from thaJeztah/bump_go_1.18.4
2022-07-14 09:48:39 +08:00
Sebastiaan van Stijn
19e8479837
seccomp: seccomp: add syscalls related to PKU in default policy
...
Add pkey_alloc(2), pkey_free(2) and pkey_mprotect(2) in seccomp default profile.
pkey_alloc(2), pkey_free(2) and pkey_mprotect(2) can only configure
the calling process's own memory, so they are existing "safe for everyone" syscalls.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2022-07-13 23:03:35 +02:00
Maksym Pavlenko
2ba6353316
Change metrics namespace for sandboxed CRI to prevent panic
...
panic: duplicate metrics collector registration attempted
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2022-07-13 12:47:13 -07:00
Maksym Pavlenko
b8e93774c1
Enable integration tests against sandboxed CRI
...
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2022-07-13 12:02:06 -07:00