-
Notifications
You must be signed in to change notification settings - Fork 3
/
plugin.yaml
66 lines (62 loc) · 1.41 KB
/
plugin.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
55
56
57
58
59
60
61
62
63
64
65
66
kind: ExecutorPlugin
apiVersion: argoproj.io/v1alpha1
metadata:
name: slack
annotations:
workflows.argoproj.io/description: |
This plugin sends a Slack message.
You must create a secret:
```yaml
apiVersion: v1
kind: Secret
metadata:
name: slack-executor-plugin
stringData:
URL: https://hooks.slack.com/services/.../.../...
```
Example:
```yaml
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: slack-example-
spec:
entrypoint: main
templates:
- name: main
plugin:
slack:
text: "{{workflow.name}} finished!"
```
workflows.argoproj.io/version: '>= v3.3'
spec:
sidecar:
container:
command:
- python
- -c
env:
- name: URL
valueFrom:
secretKeyRef:
name: slack-executor-plugin
key: URL
image: python:alpine
name: slack-executor-plugin
ports:
- containerPort: 7522
resources:
requests:
cpu: 100m
memory: 32Mi
limits:
cpu: 200m
memory: 64Mi
securityContext:
runAsNonRoot: true
runAsUser: 1000
readOnlyRootFilesystem: true
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL