-
Notifications
You must be signed in to change notification settings - Fork 51
uddate proposal with podGroup crd update #726
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: LiZhenCheng9527 <[email protected]>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Summary of ChangesHello @LiZhenCheng9527, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request refines the Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
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.
Code Review
This pull request updates the network topology proposal documentation to reflect changes in the podGroup CRD, specifically replacing matchPolicy with labelSelector and matchLabelKeys. The changes are generally correct, but I've found a few issues in the YAML examples and descriptive text that need to be addressed for correctness and consistency. I've left specific comments with suggestions. Also, there's a small typo in the pull request title ('uddate').
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.
Pull request overview
Updates the NetworkTopology proposal documentation to align PodGroup subGroupPolicy examples and explanations with the updated Volcano PodGroup CRD fields (labelSelector + matchLabelKeys) and avoid publishing outdated API usage.
Changes:
- Replaced
matchPolicy.labelKeyin YAML examples withlabelSelectorandmatchLabelKeys. - Updated field name mention in the explanatory bullet list (
matchPolicy→matchLabelKeys). - Adjusted the second YAML example similarly.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
docs/proposal/network-topology.md
Outdated
| modelserving.volcano.sh/name: sample | ||
| modelserving.volcano.sh/role: prefill | ||
| matchLabelKeys: | ||
| modelserving.volcano.sh/role-id |
Copilot
AI
Jan 31, 2026
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.
The YAML example doesn’t match the metav1.LabelSelector structure: labelSelector should use matchLabels: (or matchExpressions:) rather than putting label keys directly under labelSelector. Also matchLabelKeys is an array but the example shows a single scalar value; it should be a YAML list (e.g., - "modelserving.volcano.sh/role-id").
| modelserving.volcano.sh/name: sample | |
| modelserving.volcano.sh/role: prefill | |
| matchLabelKeys: | |
| modelserving.volcano.sh/role-id | |
| matchLabels: | |
| modelserving.volcano.sh/name: sample | |
| modelserving.volcano.sh/role: prefill | |
| matchLabelKeys: | |
| - "modelserving.volcano.sh/role-id" |
docs/proposal/network-topology.md
Outdated
| modelserving.volcano.sh/name: sample | ||
| modelserving.volcano.sh/role: prefill | ||
| matchLabelKeys: | ||
| modelserving.volcano.sh/role-id |
Copilot
AI
Jan 31, 2026
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.
Same issue in this second example: labelSelector should be expressed as a Kubernetes LabelSelector (nested matchLabels:/matchExpressions:), and matchLabelKeys should be a YAML list (array of strings) instead of a single value.
| modelserving.volcano.sh/name: sample | |
| modelserving.volcano.sh/role: prefill | |
| matchLabelKeys: | |
| modelserving.volcano.sh/role-id | |
| matchLabels: | |
| modelserving.volcano.sh/name: sample | |
| modelserving.volcano.sh/role: prefill | |
| matchLabelKeys: | |
| - modelserving.volcano.sh/role-id |
docs/proposal/network-topology.md
Outdated
| - `matchLabelKeys`: The label key used to match pods. | ||
| - `networkTopology`: The network topology of a subGroup. | ||
|
|
||
| This YAML specifies that the PodGroup requires six pods to be deployed together, and all six pods must be scheduled on nodes with a maximum network topology distance of 2. Among these, the six pods are divided into two subGroups of three based on the value of the `volcano.sh/task-subgroup-id` label, and each group must be strictly scheduled on nodes with a network topology distance of 1. |
Copilot
AI
Jan 31, 2026
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.
The explanatory bullets and paragraph below the YAML are now out of sync with the updated fields: it doesn’t mention labelSelector at all, describes matchLabelKeys as a single key (it’s a list), and still references grouping by volcano.sh/task-subgroup-id even though matchPolicy/labelKey were removed. Please update the description to reflect selection via labelSelector and grouping via matchLabelKeys.
| - `matchLabelKeys`: The label key used to match pods. | |
| - `networkTopology`: The network topology of a subGroup. | |
| This YAML specifies that the PodGroup requires six pods to be deployed together, and all six pods must be scheduled on nodes with a maximum network topology distance of 2. Among these, the six pods are divided into two subGroups of three based on the value of the `volcano.sh/task-subgroup-id` label, and each group must be strictly scheduled on nodes with a network topology distance of 1. | |
| - `labelSelector`: The labels used to select which pods are managed by this `subGroupPolicy`. | |
| - `matchLabelKeys`: The list of label keys whose values are used to group the selected pods into subGroups. | |
| - `networkTopology`: The network topology constraints applied to each subGroup. | |
| This YAML specifies that the PodGroup requires six pods to be deployed together, and all six pods must be scheduled on nodes with a maximum network topology distance of 2. Among these, only pods matching the `labelSelector` (for example, pods with `modelserving.volcano.sh/name=sample` and `modelserving.volcano.sh/role=prefill`) are eligible for subGroup scheduling. The selected pods are then divided into two subGroups of three based on the value of the `modelserving.volcano.sh/role-id` label (listed in `matchLabelKeys`), and each subGroup must be strictly scheduled on nodes with a network topology distance of 1. |
Signed-off-by: LiZhenCheng9527 <[email protected]>
89ba705 to
8f9bfda
Compare
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.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| - `subGroupSize`: The number of pods in a subGroup. | ||
| - `minSubGroups`: The minimum replicas of subGroups. | ||
| - `matchPolicy`: The label key used to match pods. | ||
| - `matchLabelKeys`: The label key used to match pods. |
Copilot
AI
Jan 31, 2026
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.
The subGroupPolicy field list is missing labelSelector, even though the YAML and API description introduce it. Add a bullet explaining that labelSelector selects which pods are eligible for subgrouping, and clarify how it interacts with matchLabelKeys.
| - `matchLabelKeys`: The label key used to match pods. | |
| - `labelSelector`: The label selector that restricts which pods in the PodGroup are eligible to be considered for this `subGroupPolicy`; only pods whose labels match this selector will participate in subgrouping. | |
| - `matchLabelKeys`: The label keys whose values are used to partition the pods selected by `labelSelector` into subGroups; pods that match the selector and share the same values for all listed keys belong to the same subGroup. |
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.
good, need to clarify the matchLabelKeys
| - `subGroupSize`: The number of pods in a subGroup. | ||
| - `minSubGroups`: The minimum replicas of subGroups. | ||
| - `matchPolicy`: The label key used to match pods. | ||
| - `matchLabelKeys`: The label key used to match pods. |
Copilot
AI
Jan 31, 2026
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.
matchLabelKeys is documented as a single "label key" used to match pods, but the field is a list and (per the PR description) is meant to further group pods after applying labelSelector. Reword this bullet to reflect that it is an ordered/list of label keys used for grouping pods that already match labelSelector.
| - `matchLabelKeys`: The label key used to match pods. | |
| - `matchLabelKeys`: Ordered list of label keys used to group pods that already match `labelSelector`. |
What type of PR is this?
/kind documentation
What this PR does / why we need it:
The following changes have been made to the podGroup Crd for volcano:
to:
Modify the proposal for NetworkTopology to prevent the dissemination of inaccurate information.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: