Skip to content

[release-1.15] fix: fall back minAvailable to replicas when partition minPartitions is omitted - #5456

Merged
volcano-sh-bot merged 1 commit into
volcano-sh:release-1.15from
volcano-sh-bot:cherry-pick-5402-to-release-1.15
Jun 16, 2026
Merged

[release-1.15] fix: fall back minAvailable to replicas when partition minPartitions is omitted#5456
volcano-sh-bot merged 1 commit into
volcano-sh:release-1.15from
volcano-sh-bot:cherry-pick-5402-to-release-1.15

Conversation

@volcano-sh-bot

Copy link
Copy Markdown
Contributor

This is an automated cherry-pick of #5402

NONE

…is omitted

Signed-off-by: Junhao Zou <zoujh99@qq.com>
@volcano-sh-bot volcano-sh-bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Jun 16, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

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 addresses issue #5401 by ensuring that when a task's PartitionPolicy is set but MinPartitions is omitted (defaulting to 0), MinAvailable falls back to Replicas instead of defaulting to 0, which would silently drop the task's gang guarantee. The validation logic has been updated to skip enforcing the relationship between MinAvailable and MinPartitions when MinPartitions is not explicitly set (> 0). Additionally, regression tests have been added to verify this behavior in both mutation and validation webhooks. No review comments were provided, so there is no feedback to address.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@JesseStutler

Copy link
Copy Markdown
Member

/approve
/lgtm

@volcano-sh-bot volcano-sh-bot added the lgtm Indicates that a PR is ready to be merged. label Jun 16, 2026
@volcano-sh-bot

Copy link
Copy Markdown
Contributor Author

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: JesseStutler

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

@volcano-sh-bot volcano-sh-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 16, 2026
@volcano-sh-bot
volcano-sh-bot merged commit 9140e4e into volcano-sh:release-1.15 Jun 16, 2026
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants