From 815a426e892e5a1fb68e179b7a6747f79d5519f1 Mon Sep 17 00:00:00 2001 From: Sai Ramesh Vanka Date: Thu, 5 Jan 2023 21:24:36 +0530 Subject: [PATCH] Enable upstream CI to test node e2e with evented pleg feature This code change helps in enabling the evented pleg feature in cri-o while running the CI(node e2e tests) jobs in the upstream k8s/test-infra Signed-off-by: Sai Ramesh Vanka --- scripts/node_e2e_installer | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/scripts/node_e2e_installer b/scripts/node_e2e_installer index 96c36b531e6..32c14301c53 100755 --- a/scripts/node_e2e_installer +++ b/scripts/node_e2e_installer @@ -3,6 +3,7 @@ set -euo pipefail # Commit to run upstream node e2e tests NODE_E2E_COMMIT=085e3a03cf17d8a97e14551ec83137954328f627 +ENABLE_POD_EVENTS=${ENABLE_POD_EVENTS:-"false"} enable_selinux() { # Make sure SELinux is enabled @@ -48,6 +49,15 @@ EOF drop_infra_ctr = false EOF + for condition in "true" "True" "TRUE"; do + if [[ "${ENABLE_POD_EVENTS}" = "$condition" ]]; then + cat </etc/crio/crio.conf.d/40-evented-pleg.conf +[crio.runtime] +enable_pod_events = true +EOF + break + fi + done } enable_selinux