Skip to content

Commit

Permalink
fix(ci): cluster bundle is broken in airgap mode (#1032)
Browse files Browse the repository at this point in the history
  • Loading branch information
emosbaugh authored Aug 23, 2024
1 parent fe03fd4 commit eab4b95
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions e2e/scripts/collect-support-bundle-cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@
set -euox pipefail

main() {
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
if ! kubectl support-bundle --output cluster.tar.gz --interactive=false --load-cluster-specs ; then
# NOTE: this will fail in airgap but we've already failed above
# TODO: improve this by downloading the spec through the proxy and running with a file path
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
fi
}

Expand Down

0 comments on commit eab4b95

Please sign in to comment.