mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-12-07 09:43:15 +00:00
tests: Refactors agnhost image pod usage - network
A previous commit created a few agnhost related functions that creates agnhost pods / containers for general purposes. Refactors tests to use those functions.
This commit is contained in:
@@ -147,7 +147,7 @@ var _ = SIGDescribe("Firewall rule", func() {
|
||||
podName := fmt.Sprintf("netexec%v", i)
|
||||
|
||||
framework.Logf("Creating netexec pod %q on node %v in namespace %q", podName, nodeName, ns)
|
||||
pod := newAgnhostPod(podName,
|
||||
pod := e2epod.NewAgnhostPod(ns, podName, nil, nil, nil,
|
||||
"netexec",
|
||||
fmt.Sprintf("--http-port=%d", firewallTestHTTPPort),
|
||||
fmt.Sprintf("--udp-port=%d", firewallTestUDPPort))
|
||||
|
||||
Reference in New Issue
Block a user