Skip to content

Commit 8cb87e0

Browse files
authored
Merge pull request #781 from l1b0k/main
fix: test when ebpf networkpolicy enabled
2 parents 99acaca + 1524778 commit 8cb87e0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/main_test.go

+7
Original file line numberDiff line numberDiff line change
@@ -183,9 +183,16 @@ func checkENIConfig(ctx context.Context, config *envconf.Config) (context.Contex
183183
if strings.Contains(cm.Data["10-terway.conf"], "datapathv2") {
184184
ipvlan = true
185185
}
186+
ebpf := false
187+
if strings.Contains(cm.Data["10-terway.conf"], "ebpf") {
188+
ebpf = true
189+
}
186190
switch cm.Data["disable_network_policy"] {
187191
case "", "false":
188192
testNetworkPolicy = true
193+
if ebpf {
194+
ipvlan = true
195+
}
189196
}
190197
cfg := &Config{}
191198
err = json.Unmarshal([]byte(cm.Data["eni_conf"]), cfg)

0 commit comments

Comments
 (0)