Skip to content

Commit

Permalink
[CI] change cluster name when collecting logs for migration k8s test
Browse files Browse the repository at this point in the history
  • Loading branch information
khoaguin committed Sep 19, 2024
1 parent 475ce54 commit a3ea25f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pr-tests-stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -742,9 +742,9 @@ jobs:
shell: bash
run: |
mkdir -p ./k8s-logs
kubectl describe all -A --context k3d-test-gateway-1 --namespace syft > ./k8s-logs/test-gateway-1-desc-${{ steps.date.outputs.date }}.txt
kubectl describe all -A --context k3d-syft-migration-source --namespace syft > ./k8s-logs/syft-migration-source-desc-${{ steps.date.outputs.date }}.txt
kubectl describe all -A --context k3d-test-datasite-1 --namespace syft > ./k8s-logs/test-datasite-1-desc-${{ steps.date.outputs.date }}.txt
kubectl logs -l app.kubernetes.io/name!=random --prefix=true --context k3d-test-gateway-1 --namespace syft > ./k8s-logs/test-gateway-1-logs-${{ steps.date.outputs.date }}.txt
kubectl logs -l app.kubernetes.io/name!=random --prefix=true --context k3d-syft-migration-source --namespace syft > ./k8s-logs/syft-migration-source-logs-${{ steps.date.outputs.date }}.txt
kubectl logs -l app.kubernetes.io/name!=random --prefix=true --context k3d-test-datasite-1 --namespace syft > ./k8s-logs/test-datasite-1-logs-${{ steps.date.outputs.date }}.txt
ls -la ./k8s-logs
Expand All @@ -760,7 +760,7 @@ jobs:
shell: bash
run: |
export PATH=`pwd`:$PATH
k3d cluster delete test-gateway-1 || true
k3d cluster delete syft-migration-source || true
k3d cluster delete test-datasite-1 || true
k3d registry delete k3d-registry.localhost || true
Expand Down

0 comments on commit a3ea25f

Please sign in to comment.