mirror of
https://github.com/kubevela/kubevela.git
synced 2026-05-23 09:43:46 +00:00
* Feat: add apply component definition for docs Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com> * Feat: add apply component definition for docs Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com> Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com>
23 lines
307 B
CUE
23 lines
307 B
CUE
import (
|
|
"vela/op"
|
|
)
|
|
|
|
oam: op.oam
|
|
// apply component and traits
|
|
apply: oam.#ApplyComponent & {
|
|
value: parameter.value
|
|
cluster: parameter.cluster
|
|
}
|
|
|
|
if apply.output != _|_ {
|
|
output: apply.output
|
|
}
|
|
|
|
if apply.outputs != _|_ {
|
|
outputs: apply.outputs
|
|
}
|
|
parameter: {
|
|
value: {...}
|
|
cluster: *"" | string
|
|
}
|