github.com/argoproj/argo-events@v1.9.1/examples/event-sources/stripe.yaml (about) 1 apiVersion: argoproj.io/v1alpha1 2 kind: EventSource 3 metadata: 4 name: stripe 5 spec: 6 service: 7 ports: 8 - port: 12000 9 targetPort: 12000 10 stripe: 11 example: 12 # Webhook holds a REST endpoint configuration for Stripe to connect with. 13 webhook: 14 # port to run HTTP server on 15 port: "12000" 16 # endpoint to listen to 17 endpoint: /example 18 # HTTP request method to allow. In this case, only POST requests are accepted 19 method: POST 20 # Webhook URL to configure at Stripe. 21 # This url must be reachable from outside the cluster. 22 # The event-source pod is backed by the service defined in the event-source spec. So get the URL for that service Stripe can reach to. 23 # The name for the service is in `<event-source-name>-eventsource-svc` format. 24 # You will need to create an Ingress or Openshift Route for the event-source service so that it can be reached from Stripe. 25 url: http://myfakeurl.fake 26 # CreateWebhook if specified creates a new webhook programmatically. 27 # +optional 28 createWebhook: true 29 # APIKey refers to K8s secret that holds Stripe API key. Used only if CreateWebhook is enabled. 30 # +optional 31 apiKey: 32 name: secret_containing_api_key 33 key: key_within_secret_that_holds_api_key 34 # Namespace to retrieve the APIKey secret from. Must be specified in order to read API key from APIKey K8s secret. 35 # +optional 36 namespace: argo-events 37 38 # example-with-event-filter: 39 # webhook: 40 # port: "13000" 41 # endpoint: /example1 42 # method: POST 43 # url: http://myfakeurl.fake 44 # createWebhook: true 45 # apiKey: 46 # name: secret_containing_api_key 47 # key: key_within_secret_that_holds_api_key 48 # namespace: argo-events 49 # # Specific filter for events. More info at https://stripe.com/docs/api/events/types 50 # eventFilter: 51 # - account.updated 52 # - application_fee.created