The gateway listens to events from GitHub.
Events types and webhook¶
Refer here for more information on type of events.
Refer here to understand the structure of webhook.
The gateway spec defined in
examples has a
serviceSpec. This service is used to expose the gateway server and make it reachable from GitHub.
The event payload dispatched from gateway contains the type of the event in the headers.
How to get the URL for the service?¶
Depending upon the Kubernetes provider, you can create the Ingress or Route.
Deploy the gateway before creating the event source configmap, because you need to have the gateway pod running and a service backed by the pod, so that you can get the URL for the service.
Create the event source.
Deploy the Sensor.
Depending upon the event you subscribe to, a workflow will be triggered.