Skip to content

Commit

Permalink
Debug gateway
Browse files Browse the repository at this point in the history
Signed-off-by: Tom Pantelis <[email protected]>
  • Loading branch information
tpantelis committed Nov 21, 2024
1 parent 6b47095 commit 0d834c0
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/system.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,9 @@ jobs:
- name: Post mortem
if: failure()
uses: submariner-io/shipyard/gh-actions/[email protected]

- name: Dump gateway
if: failure()
shell: bash
run: |
scripts/dump_gw.sh
14 changes: 14 additions & 0 deletions scripts/dump_gw.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash

export KUBECONFIG=$(find output/kubeconfigs -type f -printf %p: || :)
pod=$(kubectl --context=cluster1 get pods --selector="app=submariner-gateway" -n "submariner-operator" -o jsonpath='{.items[*].metadata.name}')
echo "GW Pod: "$pod
echo "::group::GW Pod info"
kubectl --context=cluster1 -n submariner-operator describe pods $pod
echo "::endgroup::"
echo "::group::GW Pod init log"
kubectl --context=cluster1 -n submariner-operator logs -c submariner-gateway-init $pod
echo "::endgroup::"
echo "::group::Prev GW Pod init log"
kubectl --context=cluster1 -n submariner-operator logs -p -c submariner-gateway-init $pod
echo "::endgroup::"

0 comments on commit 0d834c0

Please sign in to comment.