github.com/oam-dev/kubevela@v1.9.11/references/cli/test-data/defvet/testdef.cue (about) 1 // k8s metadata 2 test1: { 3 type: "trait" 4 description: "My test-trait test1" 5 attributes: { 6 appliesToWorkloads: ["webservice", "worker"] 7 podDisruptive: true 8 } 9 10 } 11 12 // template 13 template: { 14 patch: { 15 spec: { 16 replicas: *1 | int 17 } 18 } 19 parameter: { 20 // +usage=Specify the number of workloads 21 replicas: *1 | int 22 } 23 }