The included test failed prior to the small pod_sandbox change.
This is due to the usual gotcha of loop variables in go sharing the same
address, and the toPodSandboxStatus function returns references to
parts of that struct, which end up becoming wrong after another loop.
I'm pretty sure this explains a lot of troubles I've had with kubelet not being able to find some pod UIDs.
The included test failed prior to the small pod_sandbox change.
This is due to the usual gotcha of loop variables in go sharing the same address, and the
toPodSandboxStatus
function returns references to parts of that struct, which end up becoming wrong after another loop.I'm pretty sure this explains a lot of troubles I've had with kubelet not being able to find some pod UIDs.