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