-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
docs: documentation about webhook ingress #21543
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: R0flcopt3r <[email protected]>
🔴 Preview Environment stopped on BunnyshellSee: Environment Details | Pipeline Logs Available commands (reply to this comment):
|
docs/operator-manual/webhook.md
Outdated
Example Ingress: | ||
``` | ||
# base/argocd-webhook-ingress.yaml | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
name: argo-cd-webhook | ||
spec: | ||
rules: | ||
- host: cd.apps.argoproj.io | ||
http: | ||
paths: | ||
- path: /api/webhook | ||
pathType: Prefix | ||
backend: | ||
service: | ||
name: argocd-applicationset-controller | ||
port: | ||
number: 7000 | ||
tls: | ||
- hosts: | ||
- cd.apps.argoproj.io | ||
secretName: argocd-secret | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Link to the ingress documentation. The underlying user infrastructure may diverge too much from the example app.
Example Ingress: | |
``` | |
# base/argocd-webhook-ingress.yaml | |
apiVersion: networking.k8s.io/v1 | |
kind: Ingress | |
metadata: | |
name: argo-cd-webhook | |
spec: | |
rules: | |
- host: cd.apps.argoproj.io | |
http: | |
paths: | |
- path: /api/webhook | |
pathType: Prefix | |
backend: | |
service: | |
name: argocd-applicationset-controller | |
port: | |
number: 7000 | |
tls: | |
- hosts: | |
- cd.apps.argoproj.io | |
secretName: argocd-secret | |
``` | |
The api path `/api/webhook` of the `argocd-applicationset-controller` service on the `webhook` named port must be configured as part of your [ingress](./ingress.md). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Your sentence could fit nicely into a !!! note
or similar. A doc that describe the different webhooks would also be nice, since I wasn't aware the argocd server also handled webhooks from reading the parts I were.
docs/operator-manual/webhook.md
Outdated
@@ -12,6 +12,35 @@ a Git webhook for GitHub, but the same process should be applicable to other pro | |||
the same. A hook event for a push to branch `x` will trigger a refresh for an app pointing at the same repo with | |||
`targetRevision: refs/tags/x`. | |||
|
|||
### Webhook Ingress | |||
|
|||
The applicationset-controller is responsible for answering to webhook calls so a separate ingress has to be setup for it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
both the server and applicationset controller are responsible have a webhook handler.
I just now found this whole thing documented here, |
i did this in 7ce9bd4. |
This behaviour is poorly documented. I found the solution via issues on the GitHub project.
Checklist: