Skip to content

Commit 023eb9d

Browse files
authored
add e2e for networkpolicy lax mode (#5800)
Signed-off-by: Mengxin Liu <liumengxinfly@gmail.com>
1 parent ddb5537 commit 023eb9d

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.github/workflows/build-x86-image.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -695,6 +695,9 @@ jobs:
695695
- ipv4
696696
- ipv6
697697
- dual
698+
np-enforcement:
699+
- standard
700+
- lax
698701
steps:
699702
- uses: jlumbroso/free-disk-space@v1.3.1
700703
with:
@@ -755,6 +758,8 @@ jobs:
755758
${{ runner.os }}-e2e-go-${{ env.GO_VERSION }}-x86-${{ github.base_ref }}-
756759
757760
- name: Install kind
761+
env:
762+
NP_ENFORCEMENT: "${{ matrix.np-enforcement }}"
758763
uses: helm/kind-action@v1.12.0
759764
with:
760765
version: ${{ env.KIND_VERSION }}
@@ -890,6 +895,9 @@ jobs:
890895
- ipv4
891896
- ipv6
892897
- dual
898+
np-enforcement:
899+
- standard
900+
- lax
893901
steps:
894902
- uses: jlumbroso/free-disk-space@v1.3.1
895903
with:
@@ -957,6 +965,8 @@ jobs:
957965
make kind-ghcr-pull kind-init-${{ matrix.ip-family }}
958966
959967
- name: Install Kube-OVN
968+
env:
969+
NP_ENFORCEMENT: "${{ matrix.np-enforcement }}"
960970
id: install
961971
run: make kind-install-${{ matrix.ip-family }}
962972

dist/images/install.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ VLAN_NIC=${VLAN_NIC:-}
1313
HW_OFFLOAD=${HW_OFFLOAD:-false}
1414
ENABLE_LB=${ENABLE_LB:-true}
1515
ENABLE_NP=${ENABLE_NP:-true}
16+
NP_ENFORCEMENT=${NP_ENFORCEMENT:-standard}
1617
ENABLE_EIP_SNAT=${ENABLE_EIP_SNAT:-true}
1718
LS_DNAT_MOD_DL_DST=${LS_DNAT_MOD_DL_DST:-true}
1819
LS_CT_SKIP_DST_LPORT_IPS=${LS_CT_SKIP_DST_LPORT_IPS:-true}
@@ -4691,6 +4692,7 @@ spec:
46914692
- --pod-nic-type=$POD_NIC_TYPE
46924693
- --enable-lb=$ENABLE_LB
46934694
- --enable-np=$ENABLE_NP
4695+
- --np-enforcement=$NP_ENFORCEMENT
46944696
- --enable-eip-snat=$ENABLE_EIP_SNAT
46954697
- --enable-external-vpc=$ENABLE_EXTERNAL_VPC
46964698
- --logtostderr=false

0 commit comments

Comments
 (0)