mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-07-15 20:53:45 -04:00
When a Pod fails to asynchronously bind, a race occurs between the patch to add the `PodScheduled=False` condition and a subsequent binding attempt. If binding succeeds and adds `PodScheduled=True` before the `PodScheduled=False` condition is set, then the last update persists where the Pod is scheduled with a `spec.nodeName` but still has the `PodScheduled=False` condition. This change adds the `metadata.resourceVersion` of the Pod to patches so these conflicts can be detected and handled appropriately. |
||
|---|---|---|
| .. | ||
| api_calls.go | ||
| pod_binding.go | ||
| pod_binding_test.go | ||
| pod_status_patch.go | ||
| pod_status_patch_test.go | ||