github.com/oam-dev/kubevela@v1.9.11/references/docgen/testdata/testdeftrait.cue (about) 1 testdeftrait: { 2 type: "trait" 3 annotations: {} 4 labels: {} 5 description: "Add host aliases on K8s pod for your workload which follows the pod spec in path 'spec.template'." 6 attributes: { 7 podDisruptive: false 8 appliesToWorkloads: ["*"] 9 } 10 } 11 template: { 12 patch: { 13 // +patchKey=ip 14 spec: template: spec: hostAliases: parameter.hostAliases 15 } 16 parameter: { 17 // +usage=Specify the hostAliases to add 18 hostAliases: [...{ 19 ip: string 20 hostnames: [...string] 21 }] 22 } 23 }