diff --git a/ci-operator/step-registry/single-node/conf/e2e/single-node-conf-e2e-commands.sh b/ci-operator/step-registry/single-node/conf/e2e/single-node-conf-e2e-commands.sh index 0acb68c44858c..3458dd204991c 100644 --- a/ci-operator/step-registry/single-node/conf/e2e/single-node-conf-e2e-commands.sh +++ b/ci-operator/step-registry/single-node/conf/e2e/single-node-conf-e2e-commands.sh @@ -20,6 +20,12 @@ spec: memory: 3Gi EOF +# enableSystemLogQuery needs to be enabled for oc adm node-logs to work if OCP version >= 4.14 (or if OCP_VERSION is not set) +REQUIRED_OCP_VERSION="4.14" +if [ "$(printf '%s\n' "${REQUIRED_OCP_VERSION}" "${OCP_VERSION}" | sort --version-sort | head -n1)" = "${REQUIRED_OCP_VERSION}" ]; then + echo " enableSystemLogQuery: true" >> "${SHARED_DIR}/manifest_single-node-kubeletconfig.yml" +fi + # Use first eight cores on a single node for workload partitioning (see https://github.com/openshift/enhancements/blob/master/enhancements/workload-partitioning/management-workload-partitioning.md#goals) # ... but avoid applying workload partitioning if OCP version < 4.10 (or if OCP_VERSION is not set) REQUIRED_OCP_VERSION="4.10"