Skip to content

contoller-gen: webhook generator support for admissionregistration.k8s.io/v1 #419

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

Closed
jiachengxu opened this issue Mar 18, 2020 · 9 comments · Fixed by #469
Closed

contoller-gen: webhook generator support for admissionregistration.k8s.io/v1 #419

jiachengxu opened this issue Mar 18, 2020 · 9 comments · Fixed by #469
Assignees
Labels
lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness.

Comments

@jiachengxu
Copy link
Contributor

jiachengxu commented Mar 18, 2020

Hi folks,
Since admissionregistration.k8s.io/v1beta1 is deprecated in kubernetes v1.16 in favor of admissionregistration.k8s.io/v1, do you have a plan for adding support to generate webhook configurations (Validating/MutatingWebhokConfiguration) for admissionregistration.k8s.io/v1?

I can work on this if it is needed.

@aborilov
Copy link

+1

@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/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 Jul 16, 2020
@vincepri
Copy link
Member

vincepri commented Aug 1, 2020

/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 Aug 1, 2020
@vincepri
Copy link
Member

vincepri commented Aug 1, 2020

This would be good to have, @DirectXMan12 @alvaroaleman thoughts?

@jiachengxu
Copy link
Contributor Author

I think we can add a WebhookVersions to Webhook generator, just like what we have for CRD generator (CRDVersions): https://github.com/kubernetes-sigs/controller-tools/blob/master/pkg/crd/gen.go#L81
WDYT @vincepri ?

@vincepri
Copy link
Member

vincepri commented Aug 3, 2020

Not sure if we have to support both of them going forward, we can make this a breaking(?) change and only generate v1 webhooks

@alvaroaleman
Copy link
Member

Not sure if we have to support both of them going forward, we can make this a breaking(?) change and only generate v1 webhooks

Not sure if completely removing the beta support is a good idea because some cloud vendors severly lack behind in the offered kube version. What kube version is needed for the v1 webhook?

Defaulting to the newer version sgtm though

@jiachengxu
Copy link
Contributor Author

Not sure if completely removing the beta support is a good idea because some cloud vendors severly lack behind in the offered kube version. What kube version is needed for the v1 webhook?

@alvaroaleman as mentioned here: https://kubernetes.io/docs/reference/access-authn-authz/extensible-admission-controllers/#prerequisites
admissionregistration.k8s.io/v1 is only available with kubernetes v1.16+

@vincepri I also think it is better to also have v1beta1 webhook, and we default to generate the v1 version.

@jiachengxu
Copy link
Contributor Author

/assign

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants