Skip to content

Commit

Permalink
tests: run kops toolbox dump in bare-metal e2e
Browse files Browse the repository at this point in the history
This lets us share the diagnostic-dumping code.

We don't want to recreate the dumping apparatus
  • Loading branch information
justinsb committed Nov 10, 2024
1 parent 417cb3f commit 158f130
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions tests/e2e/scenarios/bare-metal/dump-artifacts
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,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
2 changes: 1 addition & 1 deletion tests/e2e/scenarios/bare-metal/run-test
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 158f130

Please sign in to comment.