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

Remove deprecated webhook interfaces #2641

Open
nathanperkins opened this issue Jan 8, 2024 · 11 comments
Open

Remove deprecated webhook interfaces #2641

nathanperkins opened this issue Jan 8, 2024 · 11 comments
Labels
kind/support Categorizes issue or PR as a support question. lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness.
Milestone

Comments

@nathanperkins
Copy link

Context: #2596

After giving projects a few versions to migrate, we should remove the webhook.Validator and webhook.Defaulter interfaces to prevent this issue from happening.

@nathanperkins nathanperkins changed the title Remove deprecate webhook interfaces Remove deprecated webhook interfaces Jan 8, 2024
@nathanperkins
Copy link
Author

cc: @alvaroaleman

@troy0820
Copy link
Member

troy0820 commented Jan 8, 2024

/kind support

@nathanperkins This will probably have to be a couple of minor releases before removal to prevent churn? Also, Kubebuilder scaffold will probably have to implement the webhook generation to not include this as well.

@k8s-ci-robot k8s-ci-robot added the kind/support Categorizes issue or PR as a support question. label Jan 8, 2024
@sbueringer
Copy link
Member

cc @camilamacedo86 for awareness

@nathanperkins
Copy link
Author

This will probably have to be a couple of minor releases before removal to prevent churn?

Yeah, do you have milestone tracking so that it can be added to a future version? We might want to update the deprecation message to say when it will be removed as well so that users know when they will need to remove it.

@nathanperkins
Copy link
Author

Also, Kubebuilder scaffold will probably have to implement the webhook generation to not include this as well.

I asked them to look into it here:

kubernetes-sigs/kubebuilder#3721

@troy0820
Copy link
Member

troy0820 commented Jan 8, 2024

Yeah, do you have milestone tracking so that it can be added to a future version? We might want to update the deprecation message to say when it will be removed as well so that users know when they will need to remove it.

I do not, but if we announce the planned deprecation for this in v0.17.0 and deprecate it in v0.18.0 and then remove it in v0.19.0, it'll give a little run way to be planned around k8s releases. Since we are on 1.29 now, that'll also give kubebuilder a chance to implement their strategy for this around their release schedule as well.

We probably should mark this as part of the v0.17.0 milestone? @sbueringer

@nathanperkins
Copy link
Author

I do not, but if we announce the planned deprecation for this in v0.17.0 and deprecate it in v0.18.0 and then remove it in v0.19.0, it'll give a little run way to be planned around k8s releases. Since we are on 1.29 now, that'll also give kubebuilder a chance to implement their strategy for this around their release schedule as well.

@alvaroaleman already added the deprecation notice for next version in #2596. The deprecation notice is just to encourage shifting new usage and migration to the other interface so it probably doesn't need to wait for an entire version to be added.

So maybe we can announce and deprecate in 0.17 and then remove in 0.19?

@alvaroaleman
Copy link
Member

yeah the deprecation will definitely be in the next version, the removal we will see, 0.19 sounds reasonable I guess

@sbueringer sbueringer added this to the v0.19.x milestone Jan 9, 2024
@sbueringer
Copy link
Member

sbueringer commented Jan 9, 2024

I created a v0.19.x milestone and added it there for now. Let's see what sort of feedback / pushback we get from the deprecation.

@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue as fresh with /remove-lifecycle stale
  • Close this issue with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Apr 8, 2024
@sbueringer
Copy link
Member

/remove-lifecycle stale

/lifecycle frozen

@k8s-ci-robot k8s-ci-robot added lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/support Categorizes issue or PR as a support question. lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness.
Projects
None yet
Development

No branches or pull requests

6 participants