feat(scheduler): inherit podGroup annotations#233
feat(scheduler): inherit podGroup annotations#233Syspretor merged 4 commits intosgl-project:mainfrom
Conversation
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
c5978f0 to
a7522e0
Compare
There was a problem hiding this comment.
Pull request overview
This PR updates the Volcano PodGroup manager to propagate Volcano-scoped annotations (those prefixed with volcano.sh/) from a RoleBasedGroup onto the corresponding Volcano PodGroup, aligning behavior with other controllers.
Changes:
- Add logic to collect and set
volcano.sh/*annotations from the RBG onto the Volcano PodGroup metadata. - Introduce a small helper (
inheritVolcanoAnnotations) to filter annotations by prefix. - Add a unit test validating that Volcano-prefixed annotations are copied on PodGroup creation.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| pkg/scheduler/volcano/manager.go | Copies Volcano-prefixed annotations from RBG into the created Volcano PodGroup and adds a helper for filtering. |
| pkg/scheduler/podgroup_manager_test.go | Adds a test ensuring Volcano-prefixed annotations are copied to PodGroup annotations on create. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
06bd30b to
afd4765
Compare
afd4765 to
c79c256
Compare
ca97a6f to
052b7be
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
b86d4d8 to
53ed71f
Compare
Ⅰ. Motivation
align with
lwscontrollers' behaviourⅡ. Modifications
coped annotations with
volcanoprefix fromrbgtopod groupⅢ. Does this pull request fix one issue?
impl #232
Ⅳ. List the added test cases (unit test/integration test) if any, please explain if no tests are needed.
Ⅴ. Describe how to verify it
VI. Special notes for reviews
For some annotations, it may be covered by volcano scheduler when scheduled, e.g.volcano.sh/job-allocated-hypernode.Therefore, we may need to use another map to store these annotations.Or we can simplify the impl to only support copy from
rbgwhen create and ignore update.We don't update annos on
podgroupwhen updaterbgsince some update may break scheduling policy and hard to investigateChecklist
make fmt.