-
Notifications
You must be signed in to change notification settings - Fork 49
Backend support : Add API Endpoints for Queue/Job Creation and deletion of jobs #152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
this pr is behind #88 , please approve it @JesseStutler @Monokaix |
/assign @kevin-wangzefeng |
cc : @JesseStutler @Monokaix |
4bed1cc
to
57b233c
Compare
} | ||
|
||
alert("Queue created successfully!"); | ||
await fetchQueues(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the API response includes the full created resource, we could update local state directly and skip fetchData()
to reduce extra network calls. @Shrutim1505
// @Monokaix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done @de6p
41ff3ae
to
ce6d595
Compare
cc: @Monokaix @JesseStutler please approve this |
fe2c965
to
dd7e2c0
Compare
|
bed5bc7
to
3652207
Compare
cc : @JesseStutler |
a32fb00
to
7863fd9
Compare
Screen.Recording.2025-05-29.100723.mp4 |
da01e4b
to
3d96634
Compare
Signed-off-by: Shrutim1505 <[email protected]>
3d96634
to
d7d2db0
Compare
@JesseStutler this pr handles job deletion also |
@Monokaix @JesseStutler Tested it locally on docker too |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Monokaix The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
Description:
Added POST /api/queues endpoint
Enables creation of new Volcano Queue resources.
Validates incoming queue manifests.
Merges custom annotations into the metadata.
Logs Kubernetes API errors for better debugging.
🧩 Added POST /api/jobs endpoint
Allows creation of Volcano Jobs by submitting a complete YAML manifest.
Ensures metadata.namespace is always set (defaults to "default" if not provided).
Rejects invalid job manifests or requests using the "All" namespace.
Provides detailed error messages and Kubernetes API response logs for troubleshooting.
❌ Job Deletion Support
Adds backend logic to delete Volcano jobs by name.
Ensures the jobs list is updated post-deletion.