Files
my-rook-config/pkg/operator/k8sutil
Anas Khan 464582c40b test: assert preferred anti-affinity count in testPodSpecPlacement
testPodSpecPlacement accepts a pref parameter but never asserts the
preferred anti-affinity count, so the PreferredDuringScheduling branch
of SetNodeAntiAffinityForPod went unverified. The assertion was dropped
in b91f4211c9 when the separate preferred flag was removed from
SetNodeAntiAffinityForPod, leaving pref unused.

Restore the missing assertion so the helper validates both the required
and preferred term counts. Drop the third empty-placement case, which
became an exact duplicate of the second once the two-boolean API was
collapsed and now adds no coverage.

Signed-off-by: Anas Khan <83116240+anxkhn@users.noreply.github.com>
2026-07-14 15:22:48 +05:30
..
2025-03-26 10:41:48 -07:00
2026-06-09 15:05:19 -07:00
2025-03-26 10:41:48 -07:00
2022-07-07 18:10:47 -04:00
2026-06-09 15:05:19 -07:00
2025-05-15 12:42:04 +05:30
2025-03-26 10:41:48 -07:00
2026-05-14 09:34:52 -07:00
2025-03-26 10:41:48 -07:00