-
Notifications
You must be signed in to change notification settings - Fork 2.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
OpenAPI document for a webhook provider #4138
Comments
You are right, this is a totally valid addition. At some point I was investigating if it was possible to generate it from code, but it looks like it isn't possible. I haven't fully looked at this as I'm from mobile but I'd be happy to review a PR that adds the correct yaml which should be fairly trivial to write. I would leave out the health route though as that is intended for kubernetes and is not part of the spec for the webhook . |
I can make a PR. It is possible to generate from the doc. I can provide a
separate PR for that.
…On Thu 28 Dec 2023, 11:58 Raffaele Di Fazio, ***@***.***> wrote:
You are right, this is a totally valid addition. At some point I was
investigating if it was possible to generate it from code, but it looks
like it isn't possible. I haven't fully looked at this as I'm from mobile
but I'd be happy to review a PR that adds the correct yaml which should be
fairly trivial to write. I would leave out the health route though as that
is intended for kubernetes and is not part of the spec for the webhook .
—
Reply to this email directly, view it on GitHub
<#4138 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFOLDBXE75J77KY725NYXLYLVNGHAVCNFSM6AAAAABBDN2PS2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZRGA4TSMBUG4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I think a better documentation for the webhooks is urgently needed, so thanks for the OpenAPI Spec. |
Yeah, I'm trying to develop a webhook provider for our local DNS service and it's a pain due to lack of the documenation. Thanks for this OpenAPI spec. As I see, |
I'm trying to figure that out. Life keeps interrupting but I was going to review the client code in external-dns and some existing webhook servers to see what they do. |
Hello, I have figured it out myself in the meantime. /adjustendpoints is for customizing the records according to the requirements of the respective provider. /records is for applying the changes. I am currently in the process of implementing a webhook myself. And I'm having to wade through the poor documentation.... |
Sadly I'm in the middle of a power outage so can't participate at the
moment. Could you share the URL to your project? I'm going through all the
webhook servers to see what they do. Thanks!
…On Mon 22 Jan 2024, 07:54 augeivv, ***@***.***> wrote:
Hello, I have figured it out myself in the meantime. /adjustendpoints is
for customizing the records according to the requirements of the respective
provider. /records is for applying the changes.
I am currently in the process of implementing a webhook myself. And I'm
having to wade through the poor documentation....
—
Reply to this email directly, view it on GitHub
<#4138 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFOLDCYTG4OL4GL4ENTFD3YPYLLJAVCNFSM6AAAAABBDN2PS2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBTGQZTKMJUHA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Unfortunately, this is not yet possible. On the one hand, I am not yet ready to show anything. On the other hand, the project is in the company network and is not publicly accessible. |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close not-planned |
@k8s-triage-robot: Closing this issue, marking it as "Not Planned". In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
What would you like to be added: I'd like an OpenAPI document to reflect how webhooks should be implemented. The documentation on this is a bit out of date so generating the webhook client in this project via the OpenAPI document and having server boilerplate provided means that projects could either include the webhook server from here or base their server off the OpenAPI doc here.
Why is this needed: To fully take advantage of #3063 it seems like it would be easier if webhook implementations were easier to do.
Based on reading the docs and the code, the OpenAPI doc for the webhook server would seem to be this. Is this correct?
The text was updated successfully, but these errors were encountered: