Support UDP test for netwpol on windows

This commit is contained in:
hxie 2022-01-18 17:01:43 -08:00
parent 6989e2169f
commit ac0f2e48ad

View File

@ -42,7 +42,7 @@ type Model struct {
// NewWindowsModel returns a model specific to windows testing.
func NewWindowsModel(namespaces []string, podNames []string, ports []int32, dnsDomain string) *Model {
return NewModel(namespaces, podNames, ports, []v1.Protocol{v1.ProtocolTCP}, dnsDomain)
return NewModel(namespaces, podNames, ports, []v1.Protocol{v1.ProtocolTCP, v1.ProtocolUDP}, dnsDomain)
}
// NewModel instantiates a model based on: