tests: run kops toolbox dump in bare-metal e2e

This lets us share the diagnostic-dumping code.

We don't want to recreate the dumping apparatus
This commit is contained in:
justinsb 2024-11-10 17:52:03 -05:00
parent 80806a8b43
commit 6c421cc6e7
2 changed files with 10 additions and 1 deletions

View File

@ -71,3 +71,12 @@ for ns in kube-system; do
kubectl logs -n ${ns} ${pod} > ${ARTIFACTS}/logs/${ns}/${pod}.log || true
done
done
# Use `kops toolbox dump` to dump a lot of useful information
mkdir -p ${ARTIFACTS}/dump
${KOPS} toolbox dump \
--dir ${ARTIFACTS}/dump \
--k8s-resources \
--private-key ${REPO_ROOT}/.build/.ssh/id_ed25519 \
--ssh-user root \
--name metal.k8s.local

View File

@ -28,7 +28,7 @@ BINDIR=${WORKDIR}/bin
mkdir -p "${BINDIR}"
go build -o ${BINDIR}/kops ./cmd/kops
KOPS=${BINDIR}/kops
export KOPS=${BINDIR}/kops
function cleanup() {
echo "running dump-artifacts"