Skip to content

Commit 3d10550

Browse files
Merge pull request cri-o#6225 from saschagrunert/conmon-rs-e2e
Add conmon-rs e2e to ansible playbook
2 parents a05656a + 1955be6 commit 3d10550

File tree

4 files changed

+29
-8
lines changed

4 files changed

+29
-8
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
- name: install conmon-rs
3+
shell: curl -sSfL --retry 5 --retry-delay 3 https://raw.githubusercontent.com/containers/conmon-rs/main/scripts/get | bash -s -- -o /usr/bin/conmonrs
4+
register: out
5+
- debug: var=out.stdout_lines

contrib/test/ci/build/cri-o.yml

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
22
- name: create crio dir
3-
file:
4-
path: "{{ ansible_env.GOPATH }}/src/github.com/cri-o/cri-o"
5-
state: directory
3+
file:
4+
path: "{{ ansible_env.GOPATH }}/src/github.com/cri-o/cri-o"
5+
state: directory
66

77
## extract source
88

@@ -11,8 +11,8 @@
1111
path: "/home/deadbeef/cri-o.tar.gz"
1212
register: source_tar
1313

14-
- name: extract cri-o
15-
unarchive:
14+
- name: extract cri-o
15+
unarchive:
1616
src: "/home/deadbeef/cri-o.tar.gz"
1717
dest: "{{ ansible_env.GOPATH }}/src/github.com/cri-o/cri-o"
1818
when: source_tar.stat.exists
@@ -85,6 +85,19 @@
8585
runtime_root = "/run/crun"
8686
when: "build_crun | default(False) | bool"
8787

88+
- name: use conmon-rs
89+
copy:
90+
dest: /etc/crio/crio.conf.d/99-conmonrs.conf
91+
content: |
92+
[crio.runtime.runtimes.runc]
93+
runtime_type = "pod"
94+
95+
[crio.runtime.runtimes.crun]
96+
runtime_type = "pod"
97+
runtime_root = "/run/crun"
98+
99+
when: "use_conmonrs | default(False) | bool"
100+
88101
- name: use kata
89102
copy:
90103
dest: /etc/crio/crio.conf.d/50-kata.conf
@@ -123,4 +136,3 @@
123136
content: |
124137
[crio.image]
125138
registries = [ "quay.io", "docker.io" ]
126-

contrib/test/ci/setup.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
- name: clone build and install cri-o
1111
include: "build/cri-o.yml"
12-
12+
1313
- name: clone build and install bats
1414
include: "build/bats.yml"
1515

@@ -41,5 +41,8 @@
4141
- name: install conmon
4242
include: "build/conmon.yml"
4343

44+
- name: install conmon-rs
45+
include: "build/conmon-rs.yml"
46+
4447
- name: install jq
4548
include: "build/jq.yml"

contrib/test/ci/vars.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ build_runc: True
1010
build_crun: False
1111
build_kata: False
1212
cgroupv2: False
13+
use_conmonrs: '{{ USE_CONMONRS | default(False) | bool }}'
1314

1415
critest_mirror_repo: quay.io/crio
1516

@@ -20,7 +21,7 @@ crio_integration_userns_filepath: "{{ artifacts }}/testout_userns.txt"
2021
crio_node_e2e_filepath: "{{ artifacts }}/junit_01.xml"
2122
result_dest_basedir: '{{ lookup("env","WORKSPACE") |
2223
default(playbook_dir, True) }}/artifacts'
23-
# Environment variables to set when executing e2e tests
24+
# Environment variables to set when executing e2e tests
2425
e2e_test_env:
2526
KUBECONFIG: /var/run/kubernetes/admin.kubeconfig
2627

0 commit comments

Comments
 (0)