Merge pull request #10127 from GabyCT/topic/execimage

tests:k8s: Update image in kubectl debug for the exec host function
This commit is contained in:
GabyCT 2024-08-07 17:00:52 -06:00 committed by GitHub
commit 584d7a265e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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) )