Skip to content

Commit 78a02a2

Browse files
authored
Merge pull request kubernetes#88010 from dims/support-for-adding-test-handler-for-containerd
Support for adding test-handler for containerd
2 parents 6c074f8 + 8f764b1 commit 78a02a2

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

cluster/gce/gci/configure-helper.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2687,6 +2687,15 @@ oom_score = -999
26872687
endpoint = ["https://mirror.gcr.io","https://registry-1.docker.io"]
26882688
EOF
26892689

2690+
if [[ "${CONTAINER_RUNTIME_TEST_HANDLER:-}" == "true" ]]; then
2691+
cat >> "${config_path}" <<EOF
2692+
# Setup a runtime with the magic name ("test-handler") used for Kubernetes
2693+
# runtime class tests ...
2694+
[plugins.cri.containerd.runtimes.test-handler]
2695+
runtime_type = "io.containerd.runtime.v1.linux"
2696+
EOF
2697+
fi
2698+
26902699
# Reuse docker group for containerd.
26912700
local containerd_gid="$(cat /etc/group | grep ^docker: | cut -d: -f 3)"
26922701
if [[ ! -z "${containerd_gid:-}" ]]; then

cluster/gce/util.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1224,6 +1224,7 @@ DISABLE_PROMETHEUS_TO_SD_IN_DS: $(yaml-quote ${DISABLE_PROMETHEUS_TO_SD_IN_DS:-f
12241224
CONTAINER_RUNTIME: $(yaml-quote ${CONTAINER_RUNTIME:-})
12251225
CONTAINER_RUNTIME_ENDPOINT: $(yaml-quote ${CONTAINER_RUNTIME_ENDPOINT:-})
12261226
CONTAINER_RUNTIME_NAME: $(yaml-quote ${CONTAINER_RUNTIME_NAME:-})
1227+
CONTAINER_RUNTIME_TEST_HANDLER: $(yaml-quote ${CONTAINER_RUNTIME_TEST_HANDLER:-})
12271228
UBUNTU_INSTALL_CONTAINERD_VERSION: $(yaml-quote ${UBUNTU_INSTALL_CONTAINERD_VERSION:-})
12281229
UBUNTU_INSTALL_RUNC_VERSION: $(yaml-quote ${UBUNTU_INSTALL_RUNC_VERSION:-})
12291230
NODE_LOCAL_SSDS_EXT: $(yaml-quote ${NODE_LOCAL_SSDS_EXT:-})

0 commit comments

Comments
 (0)