mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-11-14 16:21:58 +00:00
Automatic merge from submit-queue Use netexec container in http lifecycle hook test. Fixes https://github.com/kubernetes/kubernetes/issues/33636. The original test is using `"echo -e \"HTTP/1.1 200 OK\n\" | nc -l -p 1234` as a simple http server. However, it seems that this is not very reliable, which may response before golang thinks it should. So we get the error: ``` I1106 06:14:13.325397 2096 logs.go:41] Unsolicited response received on idle HTTP channel starting with "HTTP/1.1 200 OK\n\n"; err=<nil> ``` This PR changes the test to use the `netexec` container which is a simple http server written by golang and used in many of our networking e2e test. It should be more reliable. Mark 1.5 since this is fixing a 1.5 release blocking issue. Mark P0 to match the original issue. @dchen1107