github.com/oam-dev/kubevela@v1.9.11/docs/examples/live-diff/app-modified.yaml (about)

     1  apiVersion: core.oam.dev/v1beta1
     2  kind: Application
     3  metadata:
     4    name: livediff-demo
     5  spec:
     6    components:
     7      - name: myweb-1
     8        type: myworker
     9        properties:
    10          image: "busybox"
    11          cmd:
    12            - sleep
    13            - "2000" # change a component property
    14          lives: "3"
    15          enemies: "alien"
    16        traits:
    17          - type: myingress
    18            properties:
    19              domain: "www.example.com"
    20              http:
    21                "/": 90 # change a trait
    22          # - type: myscaler # remove a trait
    23          #   properties:
    24          #     replicas: 2
    25      - name: myweb-2
    26        type: myworker
    27        properties: # no change on component property
    28          image: "busybox"
    29          cmd:
    30            - sleep
    31            - "1000"
    32          lives: "3"
    33          enemies: "alien"
    34        traits:
    35          - type: myingress # add a trait
    36            properties:
    37              domain: "www.example.com"
    38              http:
    39                "/": 90
    40      - name: myweb-3  # add a component
    41        type: myworker
    42        properties:
    43          image: "busybox"
    44          cmd:
    45            - sleep
    46            - "1000"
    47          lives: "3"
    48          enemies: "alien"
    49        traits:
    50          - type: myingress
    51            properties:
    52              domain: "www.example.com"
    53              http:
    54                "/": 90