Commit Graph

19 Commits

Author SHA1 Message Date
Chao Dai
13b14736a8 Don't fail test when GOOGLE_APPLICATION_CREDENTIALS is unset
Workload identity is preferred in CI instead of GOOGLE_APPLICATION_CREDENTIALS

Signed-off-by: Chao Dai <chaodai@google.com>
2022-08-17 11:51:38 -07: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
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
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
Sebastiaan van Stijn
f33d38c7cb
integration: align tags of test images
I noticed we were using some different versions of the same test
images, so changing them to be the same (can help with find/replace
if we need to update them).

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-12-03 15:14:09 +01:00
Jiaming Xu
b9a0c5080a modify the way for checking cos
Signed-off-by: Jiaming Xu <jiamingxu@google.com>

address feedback

remove empty spaces

address feedbacks
2021-10-05 22:25:39 +00:00
Sebastiaan van Stijn
6c257552a7
scripts: declare ROOT closer to where it's used, and some DRY changes
This also prevents shellcheck from complaining about a possibly
undefined variable.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-08-03 17:27:03 +02:00
Sebastiaan van Stijn
dba0ef4eb5
scripts: add missing quotes, and minor linting issues
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-08-03 17:23:18 +02:00
Sebastiaan van Stijn
0cb656860f
test/build-utils.sh: remove support for Debian Jessie
Jessie is EOL since June 30, 2020, so it's probably fine to assume it's
no longer used.

https://www.debian.org/News/2020/20200709

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-08-03 17:05:24 +02:00
Jiaming Xu
1dada3fc2a add cgroupv2 setup for cos with a flag
Signed-off-by: Jiaming Xu <jiamingxu@google.com>

address feedbacks
2021-06-16 14:37:44 -04:00
Davanum Srinivas
4c7b960cb4
prow needs some additional setup for docker buildx
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2021-04-25 22:12:52 -04:00
Davanum Srinivas
177273680e
Add script to build test images
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2021-04-23 22:37:10 -04:00
Davanum Srinivas
c193e121f9
Create symlink to avoid duplicate cloud init
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2021-03-08 15:52:59 -05:00
Shengjing Zhu
5988bfc1ef docs: Various typo found by codespell
Signed-off-by: Shengjing Zhu <zhsj@debian.org>
2020-12-22 13:22:16 +08:00
Akihiro Suda
7e6e4c466f
remove "selinux" build tag
The build tag was removed in go-selinux v1.8.0: opencontainers/selinux#132

Related: remove "apparmor" build tag: 0a9147f3aa

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2020-12-15 20:05:25 +09:00
Derek McGowan
04a3f7c499
Update DEPLOY_DIR and VERSION to match installation script
Signed-off-by: Derek McGowan <derek@mcg.dev>
2020-10-16 13:32:58 -07:00
Derek McGowan
3a6009c001
Update test build script to push containerd variant
Signed-off-by: Derek McGowan <derek@mcg.dev>
2020-10-08 16:32:32 -07:00
Derek McGowan
4e0b13544e
Update CRI tests to build and push to gcs
This enables to the CRI e2e tests to use the build from a PR

Signed-off-by: Derek McGowan <derek@mcg.dev>
2020-09-25 14:12:57 -07:00
Mike Brown
30615c6fed testing out k8s prow test move
Signed-off-by: Mike Brown <brownwm@us.ibm.com>
2020-09-17 17:31:18 -05:00