mirror of
https://github.com/kubevela/kubevela.git
synced 2026-08-20 13:06:46 +00:00
* Feat: support vela def vet the input "dir" and many cue files Signed-off-by: Mcduller <1596582524@qq.com> * Feat: support vela def vet the input "dir" and many cue files Signed-off-by: Mcduller <1596582524@qq.com> --------- Signed-off-by: Mcduller <1596582524@qq.com>
25 lines
496 B
CUE
25 lines
496 B
CUE
testdefcue: {
|
|
type: "trait"
|
|
annotations: {}
|
|
labels: {
|
|
"ui-hidden": "true"
|
|
}
|
|
description: "Add host aliases on K8s pod for your workload which follows the pod spec in path 'spec.template'."
|
|
attributes: {
|
|
podDisruptive: false
|
|
appliesToWorkloads: ["*"]
|
|
}
|
|
}
|
|
template: {
|
|
patch: {
|
|
// +patchKey=ip
|
|
spec: template: spec: hostAliases: parameter.hostAliases
|
|
}
|
|
parameter: {
|
|
// +usage=Specify the hostAliases to add
|
|
hostAliases: [...{
|
|
ip: string
|
|
hostnames: [...string]
|
|
}]
|
|
}
|
|
} |