Avoid queueing workloads that don't match CQ namespaceSelector #301
Labels
kind/bug
Categorizes issue or PR as related to a bug.
priority/important-soon
Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
What happened:
Currently all workloads pointing to a CQ are queued irrespective whether or not they match the CQ's namespaceSelector. The selector is checked at scheduling time, which is quite late and causes two issues:
What you expected to happen:
those workloads shouldn't be queued at all, they should stay in an inadmissible list until either CQ selector is changed or their namespace labels are updated to match the CQ.
The workload controller should take care of updating the workload controller with the reason for inadmissibility just like the case where the CQ is not existent.
The text was updated successfully, but these errors were encountered: