Skip to content

Commit

Permalink
Merge pull request #781 from l1b0k/main
Browse files Browse the repository at this point in the history
fix: test when ebpf networkpolicy enabled
  • Loading branch information
BSWANG authored Jan 24, 2025
2 parents 99acaca + 1524778 commit 8cb87e0
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 8cb87e0

Please sign in to comment.