Skip to content

Commit

Permalink
.github: use netcat to check port-forward success
Browse files Browse the repository at this point in the history
Signed-off-by: devodev <[email protected]>
  • Loading branch information
devodev authored and michi-covalent committed Nov 6, 2024
1 parent 90ff162 commit 8a16943
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/eks-tunnel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ jobs:
# Port forward Relay
cilium hubble port-forward&
sleep 10s
[[ $(pgrep -f "^cilium.*hubble.*port-forward$" | wc -l) == 1 ]]
nc -nvz 127.0.0.1 4245
# Run connectivity test
cilium connectivity test --test-concurrency=3 --all-flows --collect-sysdump-on-failure --external-target amazon.com. \
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/eks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ jobs:
# Port forward Relay
cilium hubble port-forward&
sleep 10s
[[ $(pgrep -f "^cilium.*hubble.*port-forward$" | wc -l) == 1 ]]
nc -nvz 127.0.0.1 4245
# Run connectivity test
cilium connectivity test --test-concurrency=3 --all-flows --collect-sysdump-on-failure --external-target amazon.com.
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/gke.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,7 @@ jobs:
# Port forward Relay
cilium hubble port-forward&
sleep 10s
[[ $(pgrep -f "^cilium.*hubble.*port-forward$" | wc -l) == 1 ]]
nc -nvz 127.0.0.1 4245
# Run connectivity test
cilium connectivity test --test-concurrency=5 --all-flows --collect-sysdump-on-failure --external-target google.com.
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/kind.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ jobs:
run: |
cilium hubble port-forward&
sleep 10s
[[ $(pgrep -f "^cilium.*hubble.*port-forward$" | wc -l) == 1 ]]
nc -nvz 127.0.0.1 4245
- name: Set up external targets
id: external_targets
Expand Down Expand Up @@ -160,7 +160,7 @@ jobs:
run: |
cilium hubble port-forward&
sleep 10s
[[ $(pgrep -f "^cilium.*hubble.*port-forward$" | wc -l) == 1 ]]
nc -nvz 127.0.0.1 4245
- name: Connectivity test
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/multicluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ jobs:
# Port forward Relay
cilium --context "${{ steps.contexts.outputs.cluster1 }}" hubble port-forward&
sleep 10s
[[ $(pgrep -f "^cilium.*hubble.*port-forward$" | wc -l) == 1 ]]
nc -nvz 127.0.0.1 4245
# Run connectivity test
cilium --context "${{ steps.contexts.outputs.cluster1 }}" connectivity test --test-concurrency=5 \
Expand Down

0 comments on commit 8a16943

Please sign in to comment.