You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error from server: error when creating "./local/queues-hdrf.yaml": admission webhook "validatequeue.volcano.sh" denied the request: requestBody.metadata.annotations: Invalid value: "root/namewith": root/namewith is not allowed to be in the sub path of root/namewithsuffix of queue root-namewithsuffix
Steps to reproduce the issue
Create queue with an annotation: "volcano.sh/hierarchy": "root/namewithsuffix"
Try to create a queue with an annotation: "volcano.sh/hierarchy": "root/namewith"
Describe the results you received and expected
As mentioned, the result is a queue revocation done by the admission webhook. My expectation is that I should be able to create queues like root/someproject and root/someprojectdev.
What version of Volcano are you using?
1.9.0
Any other relevant information
I can pick up this issue, because currently I'm working on admission webhook in our internal env.
The text was updated successfully, but these errors were encountered:
We're just checking if our annotation hierarchy is a substring of other hierarchy, but it's not always a good check, because hierarchy may be at the same length, but with name that contains substring.
Simple solution: just add a "/" at the end of hierarchy before check.
Example 1:
Queue in the cluster: "root/somename/suffixdev" (because first one was a dev env for this project)
New queue: "root/somename/suffix" (time for a prd queue)
How it works now?
strings.HasPrefix("root/sci/dev", "root/sci") gives true and throws an error.
How it will work?
strings.HasPrefix("root/sci/dev", "root/sci") gives true and throws an error (and it should).
PigNatovsky
changed the title
Admission webhook - hierarchical queues can not have hierarchy parts that are a substring [0:i] of other queue name.
Admission webhook - hierarchical queues can not have hierarchy parts that are a substring [0:i] of other queue hierarchy.
Oct 1, 2024
PigNatovsky
pushed a commit
to PigNatovsky/volcano
that referenced
this issue
Oct 2, 2024
Description
If I create two queues like these:
Admission webhook throws:
Steps to reproduce the issue
Describe the results you received and expected
As mentioned, the result is a queue revocation done by the admission webhook. My expectation is that I should be able to create queues like root/someproject and root/someprojectdev.
What version of Volcano are you using?
1.9.0
Any other relevant information
I can pick up this issue, because currently I'm working on admission webhook in our internal env.
The text was updated successfully, but these errors were encountered: