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

Fix missing external types in apply configurations #2429

Merged
merged 1 commit into from
Feb 10, 2025

Conversation

astefanutti
Copy link
Contributor

What this PR does / why we need it:

This PR adds the external types the Trainer API depends on to the code-generator command so the generated client apply configurations are complete and do not rely on "non-apply" types.

Checklist:

  • Docs included if any changes are user facing

@astefanutti
Copy link
Contributor Author

/cc @andreyvelich @tenzen-y Could you please give this a review?

Copy link
Member

@tenzen-y tenzen-y left a comment

Choose a reason for hiding this comment

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

Thanks

@@ -39,13 +39,30 @@ kube::codegen::gen_helpers \
"${TRAINER_ROOT}/pkg/apis"

# Generate clients.
externals=(
"sigs.k8s.io/jobset/api/jobset/v1alpha2.JobSetSpec:sigs.k8s.io/jobset/client-go/applyconfiguration/jobset/v1alpha2"
Copy link
Member

Choose a reason for hiding this comment

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

Do we need to add batch/v1 Job as well? Or this JobSet import can automatically handle the batch/v1 Job typed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You're absolutely right!

I've created kubernetes-sigs/jobset#782 so it'll be pulled transitively.

Copy link
Member

Choose a reason for hiding this comment

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

Great effort across projects!
/lgtm
/approve

Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: tenzen-y

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

@google-oss-prow google-oss-prow bot merged commit cc40702 into kubeflow:master Feb 10, 2025
14 checks passed
@astefanutti astefanutti deleted the pr-applyconfig-exts branch February 10, 2025 08:50
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.

2 participants