# Code generated by KubeVela templates. DO NOT EDIT. Please edit the original cue file.
# Definition source cue file: vela-templates/definitions/internal/hostalias.cue
apiVersion: core.oam.dev/v1beta1
kind: TraitDefinition
metadata:
  annotations:
    definition.oam.dev/description: Add host aliases on K8s pod for your workload which follows the pod spec in path 'spec.template'.
  labels:
    custom.definition.oam.dev/ui-hidden: "true"
  name: hostalias
  namespace: {{ include "systemDefinitionNamespace" . }}
spec:
  appliesToWorkloads:
    - '*'
  podDisruptive: false
  schematic:
    cue:
      template: |
        patch: {
        	// +patchKey=ip
        	spec: template: spec: hostAliases: parameter.hostAliases
        }
        parameter: {
        	// +usage=Specify the hostAliases to add
        	hostAliases: [...{
        		ip: string
        		hostnames: [...string]
        	}]
        }

