mirror of
https://github.com/kubevela/kubevela.git
synced 2026-05-16 06:16:52 +00:00
* Chore: update description of policy definition Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com> * Fix: support workflow step generation for doc Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com> * Chore: refactor package refereces/plugins to references/docgen Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com> * Chore: add examples of def docs for workflow step Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com> * Feat: refine workflow description Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com> * Chore: refine the workflow step definition Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com> * Chore: update workflow step definition Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com>
24 lines
475 B
CUE
24 lines
475 B
CUE
testdeftrait: {
|
|
type: "trait"
|
|
annotations: {}
|
|
labels: {}
|
|
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]
|
|
}]
|
|
}
|
|
}
|