Files
kubevela/docs/examples/workflow/webhook-notification/app.yaml

42 lines
976 B
YAML

apiVersion: core.oam.dev/v1beta1
kind: Application
metadata:
name: first-vela-workflow
namespace: default
spec:
components:
- name: express-server
type: webservice
properties:
image: crccheck/hello-world
port: 8000
traits:
- type: ingress
properties:
domain: testsvc.example.com
http:
/: 8000
workflow:
steps:
- name: notification
type: webhook-notification
properties:
dingding:
# directly specify the webhook url
url:
address: <dingding-url>
message:
msgtype: text
text:
content: Hello KubeVela
slack:
url:
# use url in secret
formSecret:
name: <secret-name>
key: <secret-key>
message:
text: Hello KubeVela
- name: first-server
type: apply-application