From d0ca43162d2d1b6c8850cc2c45b80fe0aa8da376 Mon Sep 17 00:00:00 2001 From: Gabriela Cervantes Date: Mon, 5 Aug 2024 20:41:26 +0000 Subject: [PATCH] tests:k8s: Update image in kubectl debug for the exec host function This PR updates the image that we are using in the kubectl debug command as part of the exec host function, as the current alpine image does not allow to create a temporary file for example and creates random kubernetes failures. Signed-off-by: Gabriela Cervantes --- tests/integration/kubernetes/tests_common.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/integration/kubernetes/tests_common.sh b/tests/integration/kubernetes/tests_common.sh index fded5d6612..a93022d8aa 100644 --- a/tests/integration/kubernetes/tests_common.sh +++ b/tests/integration/kubernetes/tests_common.sh @@ -1,3 +1,4 @@ +#!/bin/bash # # Copyright (c) 2021 Red Hat, Inc. # @@ -111,7 +112,7 @@ exec_host() { # [bats-exec-test:38] INFO: k8s configured to use runtimeclass # bash: line 1: $'\r': command not found # ``` - output="$(kubectl debug -qi "node/${node}" --image=ghcr.io/linuxcontainers/alpine:latest -- chroot /host bash -c "${command}" | tr -d '\r')" + output="$(kubectl debug -qi "node/${node}" --image=quay.io/bedrock/ubuntu:latest -- chroot /host bash -c "${command}" | tr -d '\r')" # Get the updated list of debugger pods. declare -a new_debugger_pods=( $(kubectl get pods -o name | grep node-debugger) )