mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-10-22 06:59:03 +00:00
Automatic merge from submit-queue (batch tested with PRs 50967, 50505, 50706, 51033, 51028) Fix GC integration test race During TestCreateWithNonExistentOwner, when creating a pod with a non-existent owner, assume it's possible the pod will be deleted before we start checking for the pod's existence. Assuming that the pod still exists immediately after Create returns is flaky if the GC reacts very quickly. ```release-note NONE ``` Might fix https://github.com/kubernetes/kubernetes/issues/50943; without the additional test context provided by this PR, it's not entirely possible to assess the root cause of the reported failure (as we don't know whether the original assertion failure was due to there being 0 or >1 pods). /cc @caesarxuchao