mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-07-23 19:16:25 +00:00
The sig-node tests have scenarios of doing probes and lifecycle handler tests with post-start and pre-stop hooks setting the host field to be another pod. In baseline level such things won't be allowed because of the PSA rules we are adding in this PR. So unsetting the host field means it uses the podIP of self for doing the checks and using that in the pre-stop and post-start hooks is tricky because of the timing issues with when the container is actually up v/s running the test. So I have changed the tests to be privileded for them to use the .host fields if they desire to. See https://github.com/kubernetes/kubernetes/issues/133091 which is an issue opened to properly refactor these tests. Signed-off-by: Surya Seetharaman <suryaseetharaman.9@gmail.com>