github.com/oam-dev/kubevela@v1.9.11/test/e2e-test/testdata/app/app12.yaml (about)

     1  apiVersion: core.oam.dev/v1beta1
     2  kind: Application
     3  metadata:
     4    name: workflow-custom-if
     5    namespace: default
     6  spec:
     7    components:
     8    - name: comp-custom-if
     9      type: webservice
    10      properties:
    11        image: crccheck/hello-world
    12        port: 8000
    13      traits:
    14    workflow:
    15      steps:
    16      - name: apply
    17        type: apply-component
    18        properties:
    19          component: comp-custom-if
    20        outputs:
    21          - name: comp-output
    22            valueFrom: context.name
    23      - name: notification
    24        type: notification
    25        inputs:
    26          - from: comp-output
    27            parameterKey: slack.message.text
    28        if: inputs["comp-output"] == "custom-if"
    29        properties:
    30          slack:
    31            url:
    32              value: https://kubevela.io
    33      - name: notification-skip
    34        type: notification
    35        if: status.notification.failed
    36        properties:
    37          slack:
    38            url:
    39              value: https://kubevela.io
    40            message:
    41              text: skip
    42      - name: notification-succeeded
    43        type: notification
    44        if: status.notification.succeeded
    45        properties:
    46          slack:
    47            url:
    48              value: https://kubevela.io
    49            message:
    50              text: succeeded