-
Notifications
You must be signed in to change notification settings - Fork 59
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
Add missing external types to apply configurations #782
Add missing external types to apply configurations #782
Conversation
✅ Deploy Preview for kubernetes-sigs-jobset ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@tenzen-y FYI |
Can you explain a bit more about this? What was the motivating factor behind this? I did look at kubeflow and here and I don't really understand what this gives us. (Code looks good, but I'm unclear on motivation) |
For Kubeflow Trainer, we are considering moving to using SSA, and for this we need apply configuration for the owned JobSet resources to be "valid". In general, the apply configurations should not be depending on non-apply configuration structs, otherwise that defeats the purpose of SSA. |
Let me put background here: kubeflow/trainer#2297 |
/lgtm @ahg-g could you take a look also? I'm less sure of SSA but I think the change is fine. |
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.
@tenzen-y @astefanutti Do we need to make sure that all objects that we create have external types in apply configs ? For example, PodGroup for Gang-Scheduling with co-scheduling.
@andreyvelich you're right. I've checked this and the latest version of the apply configurations for the co-scheduling APIs are already OK as far as I can tell. |
@jpbetz any thoughts on this? |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ahg-g, astefanutti The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind bug
/kind api-change
What this PR does / why we need it:
This PR adds the external types the JobSet API depends on to the code-generator command so the generated client apply configurations are complete and do not rely on "non-apply" types.
Special notes for your reviewer:
Does this PR introduce a user-facing change?