Skip to content

Commit 1005ed1

Browse files
committed
avoid kindnet network policies
kindnet now implements network policies that can break the signal from the e2e tests. Just removing the serviceaccount avoids the agents can receive the information necessary, this is better than removing the kindnet ds entirely because it taints the nodes as not ready.
1 parent 044f2f7 commit 1005ed1

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

.github/workflows/e2e.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ jobs:
125125
/usr/local/bin/kind load docker-image registry.k8s.io/networking/kube-network-policies:test --name ${{ env.KIND_CLUSTER_NAME}}
126126
sed -i s#registry.k8s.io/networking/kube-network-policies.*#registry.k8s.io/networking/kube-network-policies:test# install.yaml
127127
/usr/local/bin/kubectl apply -f ./install.yaml
128+
# stop kindnet of checking network policies
129+
kubectl -n kube-system delete clusterrolebinding kindnet
128130
129131
- name: Get Cluster status
130132
run: |

.github/workflows/npa.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ jobs:
116116
/usr/local/bin/kind load docker-image registry.k8s.io/networking/kube-network-policies:test --name ${{ env.KIND_CLUSTER_NAME}}
117117
sed -i s#registry.k8s.io/networking/kube-network-policies.*#registry.k8s.io/networking/kube-network-policies:test# install-anp.yaml
118118
/usr/local/bin/kubectl apply -f ./install-anp.yaml
119+
# stop kindnet of checking network policies
120+
kubectl -n kube-system delete clusterrolebinding kindnet
119121
120122
- name: Get Cluster status
121123
run: |

tests/setup_suite.bash

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ EOF
3434
printf '%s' "${_install}" | kubectl apply -f -
3535
kubectl wait --for=condition=ready pods --namespace=kube-system -l k8s-app=kube-network-policies
3636
37+
# stop kindnet of checking network policies
38+
kubectl -n kube-system delete clusterrolebinding kindnet
39+
3740
# Expose a webserver in the default namespace
3841
kubectl run web --image=httpd:2 --labels="app=web" --expose --port=80
3942

0 commit comments

Comments
 (0)