mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-24 08:31:47 +00:00
Merge pull request #812 from chanwit/network_policy_e2e
Enable network policy in e2e
This commit is contained in:
commit
e371610849
2 changed files with 12 additions and 1 deletions
8
.github/workflows/e2e.yaml
vendored
8
.github/workflows/e2e.yaml
vendored
|
|
@ -26,7 +26,13 @@ jobs:
|
||||||
- name: Setup Kubernetes
|
- name: Setup Kubernetes
|
||||||
uses: engineerd/setup-kind@v0.5.0
|
uses: engineerd/setup-kind@v0.5.0
|
||||||
with:
|
with:
|
||||||
image: kindest/node:v1.16.9
|
version: "v0.10.0"
|
||||||
|
image: kindest/node:v1.16.15@sha256:c10a63a5bda231c0a379bf91aebf8ad3c79146daca59db816fb963f731852a99
|
||||||
|
config: .github/workflows/e2e_kind_config.yaml # disable KIND-net
|
||||||
|
- name: Setup Calico for network policy
|
||||||
|
run: |
|
||||||
|
kubectl apply -f https://docs.projectcalico.org/v3.16/manifests/calico.yaml
|
||||||
|
kubectl -n kube-system set env daemonset/calico-node FELIX_IGNORELOOSERPF=true
|
||||||
- name: Run test
|
- name: Run test
|
||||||
run: make test
|
run: make test
|
||||||
- name: Check if working tree is dirty
|
- name: Check if working tree is dirty
|
||||||
|
|
|
||||||
5
.github/workflows/e2e_kind_config.yaml
vendored
Normal file
5
.github/workflows/e2e_kind_config.yaml
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
kind: Cluster
|
||||||
|
apiVersion: kind.x-k8s.io/v1alpha4
|
||||||
|
networking:
|
||||||
|
disableDefaultCNI: true # disable kindnet
|
||||||
|
podSubnet: 192.168.0.0/16 # set to Calico's default subnet
|
||||||
Loading…
Reference in a new issue