Skip to content

Commit 22fcc72

Browse files
committed
Fixed port checking
1 parent 07d1152 commit 22fcc72

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

.github/workflows/endtoend_test_containerized_metallb.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,7 @@ jobs:
2828
--selector=app=metallb \
2929
--timeout=90s
3030
31-
DOCKER_SUBNET=$(docker network inspect kind | jq -r '.[0].IPAM.Config[0].Subnet' | cut -d'/' -f1)
32-
echo "Kind network subnet: $DOCKER_SUBNET"
33-
34-
SUBNET_PREFIX=$(echo $DOCKER_SUBNET | cut -d'.' -f1-2)
35-
echo "Subnet prefix: $SUBNET_PREFIX"
36-
31+
# Use a hardcoded IPv4 range that should be safe to use
3732
cat <<EOF | kubectl apply -f -
3833
apiVersion: metallb.io/v1beta1
3934
kind: IPAddressPool
@@ -42,7 +37,7 @@ jobs:
4237
namespace: metallb-system
4338
spec:
4439
addresses:
45-
- ${SUBNET_PREFIX}.255.200-${SUBNET_PREFIX}.255.250
40+
- 172.18.255.200-172.18.255.250
4641
---
4742
apiVersion: metallb.io/v1beta1
4843
kind: L2Advertisement
@@ -55,6 +50,7 @@ jobs:
5550
run: |
5651
kubectl apply -f deployment.yaml
5752
kubectl apply -f service.yaml
53+
kubectl wait --for=condition=ready pod --selector=app=demo-http-server --timeout=60s
5854
5955
- name: Wait for LoadBalancer to get external IP
6056
run: |

0 commit comments

Comments
 (0)