github.com/oam-dev/kubevela@v1.9.11/docs/examples/workflow/notification/app.yaml (about) 1 apiVersion: core.oam.dev/v1beta1 2 kind: Application 3 metadata: 4 name: first-vela-workflow 5 namespace: default 6 spec: 7 components: 8 - name: express-server 9 type: webservice 10 properties: 11 image: crccheck/hello-world 12 port: 8000 13 traits: 14 - type: ingress 15 properties: 16 domain: testsvc.example.com 17 http: 18 /: 8000 19 workflow: 20 steps: 21 - name: notification 22 type: notification 23 properties: 24 dingding: 25 # directly specify the webhook url 26 url: 27 value: <dingding-url> 28 message: 29 msgtype: text 30 text: 31 content: Hello KubeVela 32 lark: 33 url: 34 value: <lark-url> 35 message: 36 msg_type: "text" 37 content: "{\"text\":\" Hello KubeVela\"}" 38 slack: 39 url: 40 # use url in secret 41 secretRef: 42 name: <secret-name> 43 key: <secret-key> 44 message: 45 text: Hello KubeVela 46 email: 47 from: 48 address: <sender-email-address> 49 alias: <sender-alias> 50 password: 51 # secretRef: 52 # name: <secret-name> 53 # key: <secret-key> 54 value: <sender-password> 55 host: <email host like smtp.gmail.com> 56 port: <email port, optional, default to 587> 57 to: 58 - kubevela1@gmail.com 59 - kubevela2@gmail.com 60 content: 61 subject: test-subject 62 body: test-body 63 - name: first-server 64 type: apply-application