-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Custom path for webhooks #4295
Comments
Hi @damsien, This looks good! From my understanding (please correct me if I’m mistaken):
Therefore, I am adding blocked until we have release versions from controller-runtime and controller-tools with this support. Then, after that if anyone wish to push a PR with proposed changes to add this support please feel free. We can go from there. |
controller-toolsI have a few things to say about the
Moreover, we can see that the We can find more information on how this controller-runtime
If you agree with the fact that we have nothing to change in the Do not hesitate to correct me on any statement if I am wrong 😄 |
Hi @damsien Feel free to push a PR with your proposal for changes when the controller runtime v0.20 is released, and we start to use it. |
What do you want to happen?
Hello, I'm coming here to talk about these closed issues #1436 & #1333 that were considered as a bug.
The issue is the following: when I generate the webhook file with
kubebuilder create api
, an annotation is automatically generated in this form://+kubebuilder:webhook:path=/validate-xxx-xxx-v1-xxx,mutating=false,...
. This annotation can make the developer think that he can actually modify the path (which is not the case as explained here).The previous issues where blocked mostly because the
controller-runtime
project didn't implement the custom path feature. However, I recently made a PR that have been merged. This PR adds the ability for the developer to choose to use a custom path for his webhooks.My idea here is to let the developer choose a custom path if he wants to in his
kubebuilder
project. This choice will be made only when calling the creation command (kubebuilder create webhook
) with a--custom-path
flag. By using this flag,kubebuilder
will generate an annotation including the custom path of the developer (//+kubebuilder:webhook:path=/my-custom-path,mutating=false,...
).If this feature is accepted, I would like to work on this issue.
Extra Labels
No response
The text was updated successfully, but these errors were encountered: