github.com/argoproj/argo-events@v1.9.1/examples/event-sources/slack.yaml (about) 1 apiVersion: argoproj.io/v1alpha1 2 kind: EventSource 3 metadata: 4 name: slack 5 spec: 6 service: 7 ports: 8 - port: 12000 9 targetPort: 12000 10 slack: 11 example-insecure: 12 # hook contains configuration for the HTTP server running in the event-source. 13 # Slack will send events to following port and endpoint 14 webhook: 15 # endpoint to listen events on 16 endpoint: "/" 17 # port to run HTTP server on 18 port: "12000" 19 # HTTP request method to allow. In this case, only POST requests are accepted 20 method: POST 21 # token contains information about K8s secret that stores the token 22 token: 23 # Name of the K8s secret that contains the token 24 name: slack-secret 25 # Key within the K8s secret whose corresponding value (must be base64 encoded) is token 26 key: tokenkey 27 # signingSecret contains information about the K8s secret that stores 28 # Slack Signing Secret used to sign every request from Slack 29 signingSecret: 30 # Name of the K8s secret that contains the signingSecret 31 name: slack-secret 32 # Key within the K8s secret whose corresponding value contains the 33 # base64-encoded Slack signing secret 34 key: signingSecret 35 36 # with secure connection 37 example-secure: 38 webhook: 39 endpoint: "/" 40 port: "14000" 41 method: "POST" 42 # k8s secret that contains the cert 43 serverCertSecret: 44 name: my-secret 45 key: cert-key 46 # k8s secret that contains the private key 47 serverKeySecret: 48 name: my-secret 49 key: pk-key 50 token: 51 name: slack-secret 52 key: tokenkey 53 signingSecret: 54 # Name of the K8s secret that contains the signingSecret 55 name: slack-secret 56 # Key within the K8s secret whose corresponding value contains the 57 # base64-encoded Slack signing secret 58 key: signingSecret