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

admissionv1.AddToScheme needs to be called for v1.AdmissionReview #1161

Closed
ellistarn opened this issue Sep 14, 2020 · 8 comments
Closed

admissionv1.AddToScheme needs to be called for v1.AdmissionReview #1161

ellistarn opened this issue Sep 14, 2020 · 8 comments

Comments

@ellistarn
Copy link

Controller-gen 0.4.0 now uses v1 types. This needs to be included here: https://github.com/kubernetes-sigs/controller-runtime/blob/master/pkg/webhook/admission/http.go#L28

2020-09-14T19:47:34.638Z	DEBUG	controller-runtime.webhook.webhooks	wrote response	{"webhook": "/mutate", "UID": "", "allowed": false, "result": {}, "resultError": "got runtime.Object without object metadata: &Status{ListMeta:ListMeta{SelfLink:,ResourceVersion:,Continue:,RemainingItemCount:nil,},Status:,Message:no kind \"AdmissionReview\" is registered for version \"admission.k8s.io/v1\" in scheme \"pkg/runtime/scheme.go:101\",Reason:,Details:nil,Code:400,}"}
@ellistarn
Copy link
Author

@DirectXMan12 any word here?

@vincepri
Copy link
Member

vincepri commented Oct 5, 2020

Do we want to support only admission request v1, or both?

@ellistarn
Copy link
Author

For backwards compatibility, I think both need to be supported.

@ellistarn
Copy link
Author

For any kubebuilder users, I'm temporarily fixing this with

perl -pi -e 's/^  - v1$$//g' config/webhook/manifests.yaml

@bsctl
Copy link

bsctl commented Nov 4, 2020

Hello team, any plan on this?

@camilamacedo86
Copy link
Member

HI @ellistarn and @bsctl,

Shows that it is done in the master with #1293. COuld you please check and close this one if it is the case?

@ellistarn
Copy link
Author

Will check it out! Thanks.

@prometherion
Copy link

Hey @camilamacedo86, thanks for sharing these: everything works fine with the latest versions, thanks a lot! 🙌🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants