fix(e2e): search k8s and k8s-novolume for kubeconfig

ARC runner stores kubeconfig in /home/runner/k8s/config (mounted
by Actions Runtime). Add both k8s and k8s-novolume to the search
paths and remove non-existent paths from diagnostics.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
2026-05-05 19:51:29 +00:00
committed by Hugh Hackman [agent]
parent 31036d49e7
commit 1fc5b45aa8
+5 -7
View File
@@ -50,13 +50,11 @@ jobs:
set -euo pipefail
echo "HOME=${HOME}"
echo "ACTIONS_KUBECONFIG=${ACTIONS_KUBECONFIG:-<unset>}"
echo "Listing /runner contents:"
ls -la /runner/ 2>&1 || echo "/runner does not exist"
echo "Listing /home/runner contents:"
ls -la /home/runner/ 2>&1 || echo "/home/runner does not exist"
echo "Listing /home/github contents:"
ls -la /home/github/ 2>&1 || echo "/home/github does not exist"
for dir in /runner /home/runner/.kube /home/github/.kube "$HOME/.kube"; do
echo "Listing /home/runner/k8s contents:"
ls -la /home/runner/k8s/ 2>&1 || echo "/home/runner/k8s does not exist"
echo "Listing /home/runner/k8s-novolume contents:"
ls -la /home/runner/k8s-novolume/ 2>&1 || echo "/home/runner/k8s-novolume does not exist"
for dir in /home/runner/k8s /home/runner/k8s-novolume "$HOME/.kube" /runner; do
if [ -f "${dir}/config" ]; then
echo "Found kubeconfig at ${dir}/config"
echo "KUBECONFIG=${dir}/config" >> "$GITHUB_ENV"