]> git.feebdaed.xyz Git - 0xmirror/podman.git/commit
Deterministically order pod inspect fields
authorMatt Heon <mheon@redhat.com>
Thu, 4 Dec 2025 20:25:11 +0000 (15:25 -0500)
committerMatt Heon <mheon@redhat.com>
Thu, 4 Dec 2025 20:25:11 +0000 (15:25 -0500)
commita8ecb80ac07f4b6e61687a3a4b307194acdff41e
tree8bbee4d0e987e81bb5e3f499e7055f9eff2156bf
parent244aa643c78e3680b5caed92dd263e6c7ba3f5f1
Deterministically order pod inspect fields

There are two fields I'm worried about: shared namespaces and pod
containers. Both are generated via loops over maps and are thus
non-deterministic in ordering. Throw a sort on each to fix the
order so we can actually diff `podman pod inspect` output.

Signed-off-by: Matt Heon <mheon@redhat.com>
libpod/pod_api.go
test/system/200-pod.bats