mirror of
https://github.com/kubevela/kubevela.git
synced 2026-04-01 00:07:19 +00:00
move dry-run and live-diff into an independent pkg WIP add sample and doc WIP unit test for live-diff add unit test Signed-off-by: roy wang <seiwy2010@gmail.com>
55 lines
1.2 KiB
YAML
55 lines
1.2 KiB
YAML
apiVersion: core.oam.dev/v1beta1
|
|
kind: Application
|
|
metadata:
|
|
name: livediff-demo
|
|
spec:
|
|
components:
|
|
- name: myweb-1
|
|
type: myworker
|
|
properties:
|
|
image: "busybox"
|
|
cmd:
|
|
- sleep
|
|
- "2000" # change a component property
|
|
lives: "3"
|
|
enemies: "alien"
|
|
traits:
|
|
- type: myingress
|
|
properties:
|
|
domain: "www.example.com"
|
|
http:
|
|
"/": 90 # change a trait
|
|
# - type: myscaler # remove a trait
|
|
# properties:
|
|
# replicas: 2
|
|
- name: myweb-2
|
|
type: myworker
|
|
properties: # no change on component property
|
|
image: "busybox"
|
|
cmd:
|
|
- sleep
|
|
- "1000"
|
|
lives: "3"
|
|
enemies: "alien"
|
|
traits:
|
|
- type: myingress # add a trait
|
|
properties:
|
|
domain: "www.example.com"
|
|
http:
|
|
"/": 90
|
|
- name: myweb-3 # add a component
|
|
type: myworker
|
|
properties:
|
|
image: "busybox"
|
|
cmd:
|
|
- sleep
|
|
- "1000"
|
|
lives: "3"
|
|
enemies: "alien"
|
|
traits:
|
|
- type: myingress
|
|
properties:
|
|
domain: "www.example.com"
|
|
http:
|
|
"/": 90
|