From 7038fdc45bc9ca17a077e24b1cafb03af682c5ff Mon Sep 17 00:00:00 2001 From: Predrag Knezevic Date: Tue, 9 Jun 2026 18:20:25 +0200 Subject: [PATCH] :bug: Fix support-bundle collection on e2e failure Add test/e2e/support-bundle.yaml spec file with collectors for cluster diagnostics and pass it to the support-bundle CLI in the e2e workflow. Fixes the "no collectors specified to run" error introduced in #2750. Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/e2e.yaml | 2 +- test/e2e/support-bundle.yaml | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 test/e2e/support-bundle.yaml diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index db886ca5e..2f083fb0b 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -69,7 +69,7 @@ jobs: run: | if kubectl cluster-info &>/dev/null; then mkdir -p /tmp/artifacts - support-bundle --interactive=false -o /tmp/artifacts/support-bundle + support-bundle --interactive=false -o /tmp/artifacts/support-bundle test/e2e/support-bundle.yaml else echo "No cluster available, skipping support-bundle collection" fi diff --git a/test/e2e/support-bundle.yaml b/test/e2e/support-bundle.yaml new file mode 100644 index 000000000..c0cc0bdbf --- /dev/null +++ b/test/e2e/support-bundle.yaml @@ -0,0 +1,9 @@ +apiVersion: troubleshoot.sh/v1beta2 +kind: SupportBundle +metadata: + name: e2e-tests +spec: + collectors: + - clusterResources: {} + - clusterInfo: {} + - logs: {}