-
Notifications
You must be signed in to change notification settings - Fork 716
/
slack.yaml
54 lines (53 loc) · 1.92 KB
/
slack.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
apiVersion: argoproj.io/v1alpha1
kind: EventSource
metadata:
name: slack
spec:
service:
ports:
- port: 12000
targetPort: 12000
slack:
example-insecure:
# hook contains configuration for the HTTP server running in the event-source.
# Slack will send events to following port and endpoint
webhook:
# endpoint to listen events on
endpoint: "/"
# port to run HTTP server on
port: "12000"
# HTTP request method to allow. In this case, only POST requests are accepted
method: POST
# token contains information about K8s secret that stores the token
token:
# Name of the K8s secret that contains the token
name: slack-secret
# Key within the K8s secret whose corresponding value (must be base64 encoded) is token
key: tokenkey
# signingSecret contains information about the K8s secret that stores
# Slack Signing Secret used to sign every request from Slack
signingSecret:
# Name of the K8s secret that contains the signingSecret
name: slack-secret
# Key within the K8s secret whose corresponding value contains the
# base64-encoded Slack signing secret
key: signingSecret
# with secure connection
example-secure:
webhook:
endpoint: "/"
port: "14000"
method: "POST"
# path to file that is mounted in event-source pod which contains certs
serverCertPath: "some path in pod"
# path to file that is mounted in event-source pod which contains private key
serverKeyPath: "some path in pod"
token:
name: slack-secret
key: tokenkey
signingSecret:
# Name of the K8s secret that contains the signingSecret
name: slack-secret
# Key within the K8s secret whose corresponding value contains the
# base64-encoded Slack signing secret
key: signingSecret