Files
containerd/internal/cri/opts
zylxjtu 3f1c5fdd70 cri/windows: propagate AffinityCpus through update and status paths
Three related bugs prevented Windows CPU affinity from round-tripping
through UpdateContainerResources and ContainerStatus:

1. WithWindowsResources silently dropped AffinityCpus, so the kubelet's
   CPU manager reconcile loop never applied affinity changes to running
   containers. Add translation from CRI AffinityCpus to OCI
   WindowsCPUGroupAffinity.

2. copyResourcesToStatus never read the Affinity field from the OCI spec,
   so the stored container status always had AffinityCpus = nil. Add the
   read-back loop.

3. deepCopyOf omitted AffinityCpus when snapshotting Windows resources,
   silently dropping the field on every Status.Get(). Add the deep copy.
Signed-off-by: zylxjtu <zhang.yuanliang@hotmail.com>
2026-04-20 21:30:26 +00:00
..
2026-03-15 18:24:16 +01:00