Skip to content
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

Merged
merged 1 commit into from
Feb 12, 2025

Conversation

astefanutti
Copy link
Member

@astefanutti astefanutti commented Feb 10, 2025

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?

Add missing external types to apply configurations

@k8s-ci-robot k8s-ci-robot added kind/bug Categorizes issue or PR as related to a bug. kind/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API labels Feb 10, 2025
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Feb 10, 2025
Copy link

netlify bot commented Feb 10, 2025

Deploy Preview for kubernetes-sigs-jobset ready!

Name Link
🔨 Latest commit 23d7d0d
🔍 Latest deploy log https://app.netlify.com/sites/kubernetes-sigs-jobset/deploys/67a9b0b50f94ba00086ba410
😎 Deploy Preview https://deploy-preview-782--kubernetes-sigs-jobset.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@astefanutti
Copy link
Member Author

@ahg-g @kannon92 could you please give this a review?

@astefanutti
Copy link
Member Author

@tenzen-y FYI

@tenzen-y tenzen-y mentioned this pull request Feb 10, 2025
6 tasks
@kannon92
Copy link
Contributor

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)

@astefanutti
Copy link
Member Author

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.

@tenzen-y
Copy link
Member

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

@kannon92
Copy link
Contributor

/lgtm

@ahg-g could you take a look also? I'm less sure of SSA but I think the change is fine.

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 10, 2025
Copy link
Contributor

@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.

@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.

@astefanutti
Copy link
Member Author

@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.

@ahg-g
Copy link
Contributor

ahg-g commented Feb 10, 2025

@jpbetz any thoughts on this?

@ahg-g
Copy link
Contributor

ahg-g commented Feb 12, 2025

/lgtm
/approve

@k8s-ci-robot
Copy link
Contributor

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 12, 2025
@k8s-ci-robot k8s-ci-robot merged commit c69f95c into kubernetes-sigs:main Feb 12, 2025
13 checks passed
@astefanutti astefanutti deleted the pr-applyconfig-exts branch February 12, 2025 14:38
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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API kind/bug Categorizes issue or PR as related to a bug. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants