-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Get client.Client in webhook admission #505
Comments
This is a documentation issue. I will update it. I will use the test project as an example to show you how to use a client:
|
Thanks a lot @mengqiy |
When I run the following command. I get the following error :
|
@mohnishkodnani I guess the project was created by an older kubebuilder that doesn't support scaffolding webhook. It currently assume |
Now i create webhook admission using
kubebuilder alpha webhook ...
, and then find the webhookhandler generated like this:
The
Client
which i need in webhook validating or mutating has been commented.How could i get client or informer in webhook admission?
The text was updated successfully, but these errors were encountered: