Skip to content

Commit

Permalink
chore(e2e): missing checks and cleanup (#1022)
Browse files Browse the repository at this point in the history
  • Loading branch information
emosbaugh authored Aug 23, 2024
1 parent bc0b16a commit fe03fd4
Show file tree
Hide file tree
Showing 20 changed files with 411 additions and 594 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ jobs:
fetch-depth: 0
- name: Install Replicated CLI
run: |
curl -s https://api.github.com/repos/replicatedhq/replicated/releases/latest \
curl --retry 5 --retry-all-errors -fs https://api.github.com/repos/replicatedhq/replicated/releases/latest \
| grep "browser_download_url.*linux_amd64.tar.gz" \
| cut -d : -f 2,3 \
| tr -d \" \
Expand Down
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,25 +48,25 @@ default: build-ttl.sh
pkg/goods/bins/k0s: Makefile
mkdir -p pkg/goods/bins
if [ "$(K0S_BINARY_SOURCE_OVERRIDE)" != "" ]; then \
curl -fL -o pkg/goods/bins/k0s "$(K0S_BINARY_SOURCE_OVERRIDE)" ; \
curl --retry 5 --retry-all-errors -fL -o pkg/goods/bins/k0s "$(K0S_BINARY_SOURCE_OVERRIDE)" ; \
else \
curl -fL -o pkg/goods/bins/k0s "https://github.com/k0sproject/k0s/releases/download/$(K0S_VERSION)/k0s-$(K0S_VERSION)-amd64" ; \
curl --retry 5 --retry-all-errors -fL -o pkg/goods/bins/k0s "https://github.com/k0sproject/k0s/releases/download/$(K0S_VERSION)/k0s-$(K0S_VERSION)-amd64" ; \
fi
chmod +x pkg/goods/bins/k0s
touch pkg/goods/bins/k0s

pkg/goods/bins/kubectl-support_bundle: Makefile
mkdir -p pkg/goods/bins
mkdir -p output/tmp/support-bundle
curl -fL -o output/tmp/support-bundle/support-bundle.tar.gz https://github.com/replicatedhq/troubleshoot/releases/download/$(TROUBLESHOOT_VERSION)/support-bundle_linux_amd64.tar.gz
curl --retry 5 --retry-all-errors -fL -o output/tmp/support-bundle/support-bundle.tar.gz https://github.com/replicatedhq/troubleshoot/releases/download/$(TROUBLESHOOT_VERSION)/support-bundle_linux_amd64.tar.gz
tar -xzf output/tmp/support-bundle/support-bundle.tar.gz -C output/tmp/support-bundle
mv output/tmp/support-bundle/support-bundle pkg/goods/bins/kubectl-support_bundle
touch pkg/goods/bins/kubectl-support_bundle

pkg/goods/bins/kubectl-preflight: Makefile
mkdir -p pkg/goods/bins
mkdir -p output/tmp/preflight
curl -fL -o output/tmp/preflight/preflight.tar.gz https://github.com/replicatedhq/troubleshoot/releases/download/$(TROUBLESHOOT_VERSION)/preflight_linux_amd64.tar.gz
curl --retry 5 --retry-all-errors -fL -o output/tmp/preflight/preflight.tar.gz https://github.com/replicatedhq/troubleshoot/releases/download/$(TROUBLESHOOT_VERSION)/preflight_linux_amd64.tar.gz
tar -xzf output/tmp/preflight/preflight.tar.gz -C output/tmp/preflight
mv output/tmp/preflight/preflight pkg/goods/bins/kubectl-preflight
touch pkg/goods/bins/kubectl-preflight
Expand All @@ -80,9 +80,9 @@ pkg/goods/internal/bins/kubectl-kots: Makefile
mkdir -p pkg/goods/internal/bins
mkdir -p output/tmp/kots
if [ "$(KOTS_BINARY_URL_OVERRIDE)" != "" ]; then \
curl -fL -o output/tmp/kots/kots.tar.gz "$(KOTS_BINARY_URL_OVERRIDE)" ; \
curl --retry 5 --retry-all-errors -fL -o output/tmp/kots/kots.tar.gz "$(KOTS_BINARY_URL_OVERRIDE)" ; \
else \
curl -fL -o output/tmp/kots/kots.tar.gz https://github.com/replicatedhq/kots/releases/download/$(KOTS_VERSION)/kots_linux_amd64.tar.gz ; \
curl --retry 5 --retry-all-errors -fL -o output/tmp/kots/kots.tar.gz https://github.com/replicatedhq/kots/releases/download/$(KOTS_VERSION)/kots_linux_amd64.tar.gz ; \
fi
tar -xzf output/tmp/kots/kots.tar.gz -C output/tmp/kots
mv output/tmp/kots/kots pkg/goods/internal/bins/kubectl-kots
Expand Down
Loading

0 comments on commit fe03fd4

Please sign in to comment.