Skip to content

fix: use controller owner refs for modelbooster children#1054

Merged
volcano-sh-bot merged 1 commit into
volcano-sh:mainfrom
pm-ju:fix-modelbooster-child-controller-ownerrefs
May 18, 2026
Merged

fix: use controller owner refs for modelbooster children#1054
volcano-sh-bot merged 1 commit into
volcano-sh:mainfrom
pm-ju:fix-modelbooster-child-controller-ownerrefs

Conversation

@pm-ju
Copy link
Copy Markdown
Contributor

@pm-ju pm-ju commented May 14, 2026

/kind bug

ModelBooster-generated ModelServing and ModelRoute resources were hand-building ownerReferences without controller=true and blockOwnerDeletion=true.

Other ModelBooster child resources already use utils.NewModelOwnerRef, so this makes ownership metadata consistent and improves Kubernetes GC/controller ownership semantics.

Verification:
git diff --check
git diff --cached --check

Copilot AI review requested due to automatic review settings May 14, 2026 17:46
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a 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 refactors the construction of OwnerReferences across several files by utilizing the utils.NewModelOwnerRef helper function. This change standardizes the creation of owner references for ModelBooster and ensures that the blockOwnerDeletion and controller fields are correctly set to true, as reflected in the updated test expectations. I have no feedback to provide.

Signed-off-by: pm-ju <pmdevops29@gmail.com>
@pm-ju pm-ju force-pushed the fix-modelbooster-child-controller-ownerrefs branch 2 times, most recently from bfeecfe to ba5b698 Compare May 14, 2026 18:00
Copy link
Copy Markdown
Contributor

@FAUST-BENCHOU FAUST-BENCHOU left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reasonalbe for me

Copy link
Copy Markdown
Member

@hzxuzhonghu hzxuzhonghu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@volcano-sh-bot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hzxuzhonghu

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 merged commit c35d6d3 into volcano-sh:main May 18, 2026
16 of 17 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.

5 participants