File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -311,8 +311,10 @@ jobs:
311311 working-directory : src/github.com/containerd/containerd
312312
313313 - name : CRI Integration Test
314+ env :
315+ TEST_RUNTIME : ${{ matrix.runtime }}
314316 run : |
315- make cri-integration
317+ CONTAINERD_RUNTIME=$TEST_RUNTIME make cri-integration
316318 working-directory : src/github.com/containerd/containerd
317319
318320 - name : cri-tools critest
Original file line number Diff line number Diff line change @@ -23,13 +23,24 @@ CONTAINERD_FLAGS="--log-level=debug "
2323
2424# Use a configuration file for containerd.
2525CONTAINERD_CONFIG_FILE=${CONTAINERD_CONFIG_FILE:- " " }
26- if [ -z " ${CONTAINERD_CONFIG_FILE} " ] && command -v sestatus > /dev/null 2>&1 ; then
27- selinux_config=" /tmp/containerd-config-selinux.toml"
28- cat > ${selinux_config} <<< '
26+ # The runtime to use (ignored when CONTAINERD_CONFIG_FILE is set)
27+ CONTAINERD_RUNTIME=${CONTAINERD_RUNTIME:- " " }
28+ if [ -z " ${CONTAINERD_CONFIG_FILE} " ]; then
29+ config_file=" /tmp/containerd-config-cri.toml"
30+ truncate --size 0 " ${config_file} "
31+ if command -v sestatus > /dev/null 2>&1 ; then
32+ cat >> ${config_file} << EOF
2933[plugins.cri]
3034 enable_selinux = true
31- '
32- CONTAINERD_CONFIG_FILE=${CONTAINERD_CONFIG_FILE:- " ${selinux_config} " }
35+ EOF
36+ fi
37+ if [ -n " ${CONTAINERD_RUNTIME} " ]; then
38+ cat >> ${config_file} << EOF
39+ [plugins.cri.containerd.default_runtime]
40+ runtime_type="${CONTAINERD_RUNTIME} "
41+ EOF
42+ fi
43+ CONTAINERD_CONFIG_FILE=" ${config_file} "
3344fi
3445
3546# CONTAINERD_TEST_SUFFIX is the suffix appended to the root/state directory used
You can’t perform that action at this time.
0 commit comments