How to close a queue?

104 views
Skip to first unread message

Alton Patrick

unread,
May 5, 2021, 5:47:19 AM5/5/21
to volcano-sh
Trying to delete a Queue with kubectl, I get this error:

$ kubectl delete queues.scheduling.volcano.sh foo
Error from server: admission webhook "validatequeue.volcano.sh" denied the request: only queue with state `Closed` can be deleted, queue `foo` state is `Open`


How do I set the Queue's state to "Closed"? Can it be done with kubectl? I have tried updating the the object's manifest with "kubectl apply", but it doesn't not seem to have an effect.

Klaus Ma

unread,
May 6, 2021, 8:53:51 PM5/6/21
to volcano-sh
It's required to close queue firstly after all job completed, and then delete the queue :).
And here's more info about this question:

xref https://github.com/volcano-sh/volcano/issues/1329
Reply all
Reply to author
Forward
0 new messages