Skip to content

feat: Add the manager field to the podTemplateOverride object#3020

Merged
google-oss-prow[bot] merged 1 commit intokubeflow:masterfrom
kaisoz:add-manager-field-podtemplateoverride
Feb 16, 2026
Merged

feat: Add the manager field to the podTemplateOverride object#3020
google-oss-prow[bot] merged 1 commit intokubeflow:masterfrom
kaisoz:add-manager-field-podtemplateoverride

Conversation

@kaisoz
Copy link
Copy Markdown
Contributor

@kaisoz kaisoz commented Dec 4, 2025

What this PR does / why we need it:

This PR adds a manager field to the podTemplateOverrides object, indicating who created (owns) the object. This is useful for external controllers such as Kueue to identify which entries they added. This manager field is optional and is defaulted by a mutating webhook, which sets the request username for podTemplateOverrides that don’t have a manager.

Which issue(s) this PR fixes (optional, in Fixes #<issue number>, #<issue number>, ... format, will close the issue(s) when PR gets merged):
Fixes #2856

Checklist:

  • Docs included if any changes are user facing

@kaisoz kaisoz force-pushed the add-manager-field-podtemplateoverride branch from ef4a233 to 51f3ab8 Compare December 4, 2025 22:52
@kaisoz kaisoz changed the title Add the manager field to the podTemplateOverride object feat: Add the manager field to the podTemplateOverride object Dec 4, 2025
@kaisoz kaisoz force-pushed the add-manager-field-podtemplateoverride branch 2 times, most recently from a9df140 to a1f169f Compare December 4, 2025 23:01
@coveralls
Copy link
Copy Markdown

coveralls commented Dec 4, 2025

Pull Request Test Coverage Report for Build 22080067239

Details

  • 1 of 3 (33.33%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.03%) to 55.998%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pkg/runtime/framework/plugins/jobset/jobset.go 1 3 33.33%
Totals Coverage Status
Change from base Build 22051165353: -0.03%
Covered Lines: 1391
Relevant Lines: 2484

💛 - Coveralls

@kaisoz
Copy link
Copy Markdown
Contributor Author

kaisoz commented Dec 4, 2025

cc @tenzen-y @andreyvelich @astefanutti @mimowo

I also tested this manually in kind by deploying a Trainjob with a podTemplateOverride entry in a cluster with Kueue installed. The mutating webhook added manager=kubernetes-admin to my podTemplateOverride object, and manager=system:serviceaccount:kueue-system:kueue-controller-manager (the Kueue service account) to the ones added by Kueue.

@kaisoz
Copy link
Copy Markdown
Contributor Author

kaisoz commented Dec 4, 2025

The failing test seems to be a flake (Failed executing command with error: build process: clone golangci-lint: git clone --branch v2.4.0 --single-branch --depth 1 -c advice.detachedHead=false -q https://github.com/golangci/golangci-lint.git: exit status 128) Could anyone re-run it for me? Thanks!

@astefanutti
Copy link
Copy Markdown
Contributor

/retest

@kaisoz
Copy link
Copy Markdown
Contributor Author

kaisoz commented Dec 5, 2025

/retest

I thought I couldn't do this here since the repo uses GH actions... 🤦🏻

@kaisoz
Copy link
Copy Markdown
Contributor Author

kaisoz commented Dec 5, 2025

/retest

@google-oss-prow
Copy link
Copy Markdown

@kaisoz: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

Details

In response to this:

/retest

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.

@kaisoz
Copy link
Copy Markdown
Contributor Author

kaisoz commented Dec 5, 2025

/retest

@google-oss-prow
Copy link
Copy Markdown

@kaisoz: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

Details

In response to this:

/ok-to-test

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.

@google-oss-prow
Copy link
Copy Markdown

@kaisoz: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

Details

In response to this:

/retest

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.

@kaisoz
Copy link
Copy Markdown
Contributor Author

kaisoz commented Dec 5, 2025

@kaisoz: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

@astefanutti prow doesn't trust me 😆 . I did run the clone line in machine and it works, I expect it to work now in CI..

@astefanutti
Copy link
Copy Markdown
Contributor

/ok-to-test

/restest

@kaisoz
Copy link
Copy Markdown
Contributor Author

kaisoz commented Dec 7, 2025

/retest

@astefanutti
Copy link
Copy Markdown
Contributor

@kaisoz there is an issue with CI that should be fixed after you rebase this on top of #3023.

@kaisoz
Copy link
Copy Markdown
Contributor Author

kaisoz commented Dec 8, 2025

@kaisoz there is an issue with CI that should be fixed after you rebase this on top of #3023.

great @astefanutti ! Thanks! Then I think I'll wait for #3023 to be merged and then rebase 😊

@astefanutti
Copy link
Copy Markdown
Contributor

@kaisoz #3023 has been merged if you want to rebase on top.

@kaisoz kaisoz force-pushed the add-manager-field-podtemplateoverride branch 3 times, most recently from 4b7953b to 2e6b6dd Compare December 9, 2025 09:17
@kaisoz
Copy link
Copy Markdown
Contributor Author

kaisoz commented Dec 9, 2025

/retest

@kaisoz
Copy link
Copy Markdown
Contributor Author

kaisoz commented Dec 9, 2025

@astefanutti all green now! PTAL whenever you have time. Thanks! 🙂

Copy link
Copy Markdown
Contributor

@astefanutti astefanutti left a comment

Choose a reason for hiding this comment

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

@kaisoz that looks good to me overall, thanks!

I understand the webhook would automatically set the manager field to "mimic" SSA behavior, but just to be sure we don't introduce too much complexity nor "re-invent" the wheel, would having Kueue set the manager field directly in the PodTemplateOverride be working just as good?

@google-oss-prow
Copy link
Copy Markdown

@andreyvelich: GitHub didn't allow me to assign the following users: mimowo.

Note that only kubeflow members with read permissions, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time.
For more information please see the contributor guide

Details

In response to this:

Thanks for the update @kaisoz!
/lgtm
/assign @mimowo @astefanutti @tenzen-y

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.

@andreyvelich
Copy link
Copy Markdown
Member

@kaisoz You might need to rebase this PR to fix E2Es.

@kaisoz kaisoz force-pushed the add-manager-field-podtemplateoverride branch from 15ae571 to da91bb1 Compare February 10, 2026 17:33
@google-oss-prow google-oss-prow Bot removed the lgtm label Feb 10, 2026
@kaisoz
Copy link
Copy Markdown
Contributor Author

kaisoz commented Feb 10, 2026

@kaisoz You might need to rebase this PR to fix E2Es.

done!

@andreyvelich
Copy link
Copy Markdown
Member

/lgtm

@google-oss-prow google-oss-prow Bot added the lgtm label Feb 10, 2026
@kaisoz kaisoz force-pushed the add-manager-field-podtemplateoverride branch from da91bb1 to b04584e Compare February 15, 2026 21:15
Copy link
Copy Markdown
Member

@andreyvelich andreyvelich left a comment

Choose a reason for hiding this comment

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

Thanks @kaisoz!
/lgtm
/assign @astefanutti @tenzen-y

@google-oss-prow google-oss-prow Bot added the lgtm label Feb 15, 2026
@kaisoz kaisoz force-pushed the add-manager-field-podtemplateoverride branch from b04584e to 5e20596 Compare February 16, 2026 22:44
@google-oss-prow google-oss-prow Bot removed the lgtm label Feb 16, 2026
Signed-off-by: Tomas Tormo <tomas.tormo@gmail.com>
@kaisoz kaisoz force-pushed the add-manager-field-podtemplateoverride branch from 5e20596 to 21e3aa7 Compare February 16, 2026 23:04
Copy link
Copy Markdown
Member

@andreyvelich andreyvelich left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@google-oss-prow google-oss-prow Bot added the lgtm label Feb 16, 2026
@google-oss-prow
Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: andreyvelich

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

@google-oss-prow google-oss-prow Bot merged commit 99deac7 into kubeflow:master Feb 16, 2026
30 checks passed
@google-oss-prow google-oss-prow Bot added this to the v2.2 milestone Feb 16, 2026
milinddethe15 pushed a commit to milinddethe15/kf-trainer that referenced this pull request Feb 22, 2026
Krishna-kg732 pushed a commit to Krishna-kg732/kf-trainer that referenced this pull request Feb 23, 2026
sameerdattav pushed a commit to sameerdattav/trainer that referenced this pull request Feb 23, 2026
XploY04 pushed a commit to XploY04/trainer that referenced this pull request Feb 24, 2026
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.

Extend the PodTemplateOverrides structure with "manager" field

8 participants