[Hierarchical Queues]When creating a hierarchical sub-queue, it will be rejected by the Validating Webhook #4031
Labels
good first issue
Denotes an issue ready for a new contributor, according to the "help wanted" guidelines.
help wanted
Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
kind/bug
Categorizes issue or PR as related to a bug.
Description
For example, there are two queues to build the hierarchical queues, B is the child queue of A, and then B commits some podgroups, then queue B will update its allocated field in status, also its parent queue A. Then we try to create a sub-queue under A called C, then the creation of C will be rejected because of these codes:
volcano/pkg/webhooks/admission/queues/validate/validate_queue.go
Lines 259 to 262 in 444a1ab
Steps to reproduce the issue
Describe the results you received and expected
We may not depend only on allocated field in queue status to check whether we can create a sub-queue under the existing queue, we may combine to check whether a queue is a leaf queue. Only leaf queue without pods inside can create sub-queues, there is no check of non-leaf queues.
What version of Volcano are you using?
v1.11
Any other relevant information
No response
The text was updated successfully, but these errors were encountered: