argoproj / argo-events

Event-driven Automation Framework for Kubernetes
https://argoproj.github.io/argo-events/
Apache License 2.0
2.35k stars 729 forks source link

Gitea webhook #1431

Open nwmcsween opened 2 years ago

nwmcsween commented 2 years ago

Is your feature request related to a problem? Please describe. Create a gitea eventsource

Describe the solution you'd like As per feature req

Describe alternatives you've considered Gitlab is a viable alternative but requires a huge install base of versioned deps.


Message from the maintainers:

If you wish to see this enhancement implemented please add a 👍 reaction to this issue! We often sort issues this way to know what to prioritize.

whynowy commented 2 years ago

@nwmcsween - would you like to contribute on it?

willzhang commented 9 months ago

Does argo events not support triggering gitea、gogs、gitlab, a self installed Git server's webhook?

my argo-events deploy in local environment, cloud github and gitlab can not access argo-events environments, because i have no public ip address.

i have try use gitea config webhook ,but it failed, i don't know how to config it image

Delivery: Post "http://192.168.72.222/example": dial tcp 192.168.72.222:80: webhook can only call allowed HTTP servers (check your webhook.ALLOWED_HOST_LIST setting), deny '192.168.72.222(192.168.72.222:80)'

command is success

root@kube001:~# curl -d '{"message":"this is my first webhook"}' -H "Content-Type: application/json" -X POST http://192.168.72.222:12000/example
successroot@kube001:~# 
root@kube001:~# 
root@kube001:~# kubectl -n argo-events get wf
NAME            STATUS    AGE   MESSAGE
webhook-mxbmr   Running   9s