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

Make LossLessDefaulter selective to only prevent dropping fields outside of schema #3315

Closed
wants to merge 4 commits into from

Conversation

mbobrovskyi
Copy link
Contributor

What type of PR is this?

/kind feature

What this PR does / why we need it:

Make LossLessDefaulter selective to only prevent dropping fields outside of schema.

Which issue(s) this PR fixes:

Fixes #3174

Special notes for your reviewer:

Does this PR introduce a user-facing change?

NONE

@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. kind/feature Categorizes issue or PR as related to a new feature. labels Oct 25, 2024
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: mbobrovskyi
Once this PR has been reviewed and has the lgtm label, please assign kerthcet for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found 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 cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Oct 25, 2024
Copy link

netlify bot commented Oct 25, 2024

Deploy Preview for kubernetes-sigs-kueue canceled.

Name Link
🔨 Latest commit fd80f06
🔍 Latest deploy log https://app.netlify.com/sites/kubernetes-sigs-kueue/deploys/671ba002144b1b0008a10ce4

@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Oct 25, 2024
@mbobrovskyi
Copy link
Contributor Author

/cc @mimowo

@k8s-ci-robot k8s-ci-robot requested a review from mimowo October 25, 2024 13:42
@mbobrovskyi
Copy link
Contributor Author

/retest

@alculquicondor
Copy link
Contributor

so this is matching kubernetes-sigs/controller-runtime#2982, right?

@mbobrovskyi
Copy link
Contributor Author

so this is matching kubernetes-sigs/controller-runtime#2982, right?

Yes, I created a PR here to fix it in Kueue. After kubernetes-sigs/controller-runtime#2982 is merged, we can remove it here.

@mimowo
Copy link
Contributor

mimowo commented Oct 25, 2024

Yes, and we also did it to check all the tests we developed testing other solutions pass with this approach - to gain more confidence in it.

Indeed, if the fix is merged for controller-runtime I think we don't need to merge it in kueue.

@alculquicondor
Copy link
Contributor

That will take time to trickle. OTOH, the current solution works for all of our webhooks today.

@mbobrovskyi
Copy link
Contributor Author

/hold

Looks like kubernetes-sigs/controller-runtime#2982 almost done.

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 29, 2024
@trasc
Copy link
Contributor

trasc commented Nov 4, 2024

/hold

Looks like kubernetes-sigs/controller-runtime#2982 almost done.

Even if it gets merged, it will take some time for it be part of a release and for kueue to use that release.

@mimowo
Copy link
Contributor

mimowo commented Nov 6, 2024

I think we have time to wait for now, because the current solution works fine as long as the webhooks don't remove fields.
So I would suggest to close this PR for now. We can re-open if we have a pressing need to allow for removing fields by Kueue webhooks, but for now it seems we can wait.

I opened #3469 to track it.

@mbobrovskyi
Copy link
Contributor Author

/close

@k8s-ci-robot
Copy link
Contributor

@mbobrovskyi: Closed this PR.

In response to this:

/close

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-sigs/prow repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. kind/feature Categorizes issue or PR as related to a new feature. release-note-none Denotes a PR that doesn't merit a release note. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make LossLessDefaulter selective to only prevent dropping fields outside of schema
5 participants