-
Notifications
You must be signed in to change notification settings - Fork 8
/
mail.yaml
63 lines (63 loc) · 1.38 KB
/
mail.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
apiVersion: devops.kubesphere.io/v1alpha3
kind: ClusterStepTemplate
metadata:
name: mail
labels:
step.devops.kubesphere.io/category: "General"
annotations:
devops.kubesphere.io/displayNameZH: "邮件"
devops.kubesphere.io/descriptionZH: "通过邮件发送消息"
devops.kubesphere.io/displayNameEN: "Mail"
devops.kubesphere.io/descriptionEN: "Send message by email"
step.devops.kubesphere.io/icon: "mail"
spec:
runtime: dsl
parameters:
- name: to
type: string
display: 'Recipient'
- name: cc
type: string
display: 'CC'
- name: subject
type: string
display: 'Subject'
required: true
- name: body
type: text
display: 'Body'
required: true
template: |
{
"arguments": [
{
"key": "to",
"value": {
"isLiteral": true,
"value": "{{.param.to}}"
}
},
{
"key": "cc",
"value": {
"isLiteral": true,
"value": "{{.param.cc}}"
}
},
{
"key": "subject",
"value": {
"isLiteral": true,
"value": "{{.param.subject}}"
}
},
{
"key": "body",
"value": {
"isLiteral": true,
"value": "{{.param.body}}"
}
}
],
"name": "mail"
}