Files
multus-cni/pkg/checkpoint
Yun Zhou 1f27f0e331 Sort DeviceIDs in GetPodResourceMap for deterministic ordering
When a namespace uses a primary User-Defined Network (UDN) with a
device-plugin resource (e.g. SR-IOV), OVN-Kubernetes uses the last
device in the list for the primary interface while Multus assigns
earlier devices to cluster-default/secondary interfaces. The kubelet
and checkpoint paths build the list from map iteration, so order was
non-deterministic and the "last" device could differ between callers.
Sorting ensures both Multus and OVN-K8s see the same order so the
last device is consistently the one reserved for the primary UDN.

Signed-off-by: Yun Zhou <yunz@nvidia.com>
2026-03-16 11:46:51 -07:00
..