Skip to content

Add API support for updating specification of existing queues #111

Merged
volcano-sh-bot merged 1 commit intovolcano-sh:mainfrom
Shrutim1505:backend-editing-queues
May 30, 2025
Merged

Add API support for updating specification of existing queues #111
volcano-sh-bot merged 1 commit intovolcano-sh:mainfrom
Shrutim1505:backend-editing-queues

Conversation

@Shrutim1505
Copy link
Member

This PR complements recent frontend changes to allow queue editing via both YAML and structured form inputs.

🔧 Key Changes:
Implemented PUT /api/queues/:name endpoint to allow partial or full updates to a queue's spec.

Validates incoming payload to ensure presence of required fields (metadata.name and spec).

Updates queue definitions in the underlying data store (e.g., Kubernetes, DB, or config map).

Returns updated queue specification in the response.

🧪 Testing:
Manually tested updates via both YAML and form-based editors in the frontend.

Verified correct rejection of invalid payloads (e.g., missing spec or malformed data).

Confirmed compatibility with frontend changes (e.g., reclaimable boolean field handling).

@Shrutim1505
Copy link
Member Author

this PR is behind #92 @Monokaix

@Shrutim1505
Copy link
Member Author

/assign @Monokaix

@Monokaix
Copy link
Member

/approve

@volcano-sh-bot
Copy link
Contributor

[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

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Signed-off-by: Shrutim1505 <shrutimurthy2103@gmail.com>

Combined: frontend and merge from main

Signed-off-by: Shrutim1505 <shrutimurthy2103@gmail.com>

WIP: local changes to package-lock.json

package.json

Signed-off-by: Shrutim1505 <shrutimurthy2103@gmail.com>

formatting checker

Signed-off-by: Shrutim1505 <shrutimurthy2103@gmail.com>

format check

Signed-off-by: Shrutim1505 <shrutimurthy2103@gmail.com>

edit functionality in form of queue

Signed-off-by: Shrutim1505 <shrutimurthy2103@gmail.com>

package-lock.json

Signed-off-by: Shrutim1505 <shrutimurthy2103@gmail.com>

permission added

Signed-off-by: Shrutim1505 <shrutimurthy2103@gmail.com>
@Shrutim1505 Shrutim1505 force-pushed the backend-editing-queues branch from 523b4bb to 545c89d Compare May 30, 2025 05:39
@volcano-sh-bot
Copy link
Contributor

@Shrutim1505: you cannot LGTM your own PR.

Details

In response to this:

/lgtm

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@Shrutim1505
Copy link
Member Author

Shrutim1505 commented May 30, 2025

@Shrutim1505
Copy link
Member Author

Shrutim1505 commented May 30, 2025

this pr is interconnected with #92

@JesseStutler
Copy link
Member

/lgtm

@volcano-sh-bot volcano-sh-bot merged commit 5e715a5 into volcano-sh:main May 30, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Comments