# This configmap contains the event sources configurations for Webhook gateway

---
apiVersion: v1
kind: ConfigMap
metadata:
  name: webhook-event-source
  namespace: argo-events
  labels:
    # do not remove
    argo-events-event-source-version: v0.10
data:
  # gateway can run multiple HTTP servers. Simply define a unique port to start a new HTTP server

  example: |-
    # port to run HTTP server on
    port: "12000"
    # endpoint to listen to
    endpoint: "/index"
    # HTTP request method to allow. In this case, only POST requests are accepted
    method: "POST"

  # example 3 and 4 shows how you can add multiple endpoints on same HTTP server

  example-3: |-
    port: "14000"
    endpoint: "/example3"
    method: "PUT"

  example-4: |-
    port: "14000"
    endpoint: "/example4"
    method: "POST"
