mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 14:07:14 +00:00
Remove option 'T' from wget on Windows
Command 'wget' in Windows image agnhost does not support option timeout, this test fails: - should be able to up and down services
This commit is contained in:
parent
7f9fb6eaf0
commit
83974e4940
@ -328,7 +328,11 @@ func verifyServeHostnameServiceUp(c clientset.Interface, ns string, expectedPods
|
|||||||
|
|
||||||
// verify service from pod
|
// verify service from pod
|
||||||
cmdFunc := func(podName string) string {
|
cmdFunc := func(podName string) string {
|
||||||
wgetCmd := "wget -q -T 1 -O -"
|
wgetCmd := "wget -q -O -"
|
||||||
|
// Command 'wget' in Windows image may not support option 'T'
|
||||||
|
if !framework.NodeOSDistroIs("windows") {
|
||||||
|
wgetCmd += " -T 1"
|
||||||
|
}
|
||||||
serviceIPPort := net.JoinHostPort(serviceIP, strconv.Itoa(servicePort))
|
serviceIPPort := net.JoinHostPort(serviceIP, strconv.Itoa(servicePort))
|
||||||
cmd := fmt.Sprintf("for i in $(seq 1 %d); do %s http://%s 2>&1 || true; echo; done",
|
cmd := fmt.Sprintf("for i in $(seq 1 %d); do %s http://%s 2>&1 || true; echo; done",
|
||||||
50*len(expectedPods), wgetCmd, serviceIPPort)
|
50*len(expectedPods), wgetCmd, serviceIPPort)
|
||||||
|
Loading…
Reference in New Issue
Block a user