Skip to content

Commit 45ab90f

Browse files
committed
ci: run TestK8sOperator in the shared sqlite matrix
It needs no special runner (every integration container already runs privileged), so it joins the generated matrix; load br_netfilter only for that test. Updates #1202
1 parent 4f5e2cc commit 45ab90f

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/integration-test-template.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,13 @@ jobs:
7878
echo '{"storage-driver":"overlay2"}' | sudo tee /etc/docker/daemon.json
7979
sudo systemctl restart docker
8080
docker version
81+
- name: Load br_netfilter for in-cluster service routing
82+
if: inputs.test == 'TestK8sOperator'
83+
# TestK8sOperator runs k3s in a container; without br_netfilter on the
84+
# host, bridged pod-to-pod traffic skips kube-proxy's ClusterIP DNAT and
85+
# in-cluster DNS (kube-dns) is unreachable. The module cannot be loaded
86+
# from inside the unprivileged-module rancher/k3s image, so load it here.
87+
run: sudo modprobe br_netfilter
8188
- name: Login to Docker Hub
8289
env:
8390
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_CI_USERNAME }}

.github/workflows/test-integration.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,7 @@ jobs:
311311
- Test2118DeletingOnlineNodePanics
312312
- TestGrantCapRelay
313313
- TestGrantCapDrive
314+
- TestK8sOperator
314315
- TestEnablingRoutes
315316
- TestHASubnetRouterFailover
316317
- TestSubnetRouteACL

0 commit comments

Comments
 (0)