Skip to content

Commit

Permalink
fix: test when ebpf networkpolicy enabled
Browse files Browse the repository at this point in the history
Signed-off-by: l1b0k <[email protected]>
  • Loading branch information
l1b0k committed Jan 24, 2025
1 parent da5f2f2 commit 1524778
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,16 @@ func checkENIConfig(ctx context.Context, config *envconf.Config) (context.Contex
if strings.Contains(cm.Data["10-terway.conf"], "datapathv2") {
ipvlan = true
}
ebpf := false
if strings.Contains(cm.Data["10-terway.conf"], "ebpf") {
ebpf = true
}
switch cm.Data["disable_network_policy"] {
case "", "false":
testNetworkPolicy = true
if ebpf {
ipvlan = true
}
}
cfg := &Config{}
err = json.Unmarshal([]byte(cm.Data["eni_conf"]), cfg)
Expand Down

0 comments on commit 1524778

Please sign in to comment.