Skip to content

Commit

Permalink
fix(e2e): collect cluster support bundle if ec install fails (#1006)
Browse files Browse the repository at this point in the history
  • Loading branch information
emosbaugh authored Aug 20, 2024
1 parent 816ef38 commit e3ca3d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion e2e/scripts/collect-support-bundle-cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
set -euox pipefail

main() {
if ! kubectl support-bundle --output cluster.tar.gz --interactive=false --load-cluster-specs; then
local url="https://raw.githubusercontent.com/replicatedhq/embedded-cluster-operator/main/charts/embedded-cluster-operator/troubleshoot/cluster-support-bundle.yaml"
if ! kubectl support-bundle --output cluster.tar.gz --interactive=false --load-cluster-specs "$url" ; then
echo "Failed to collect cluster support bundle"
return 1
fi
Expand Down

0 comments on commit e3ca3d9

Please sign in to comment.