mirror of
https://github.com/kubevela/kubevela.git
synced 2026-05-16 06:16:52 +00:00
* Chore: use use fix and optimize definitions Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com> * Fix: use fields instead of structs Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com> Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com>
23 lines
474 B
CUE
23 lines
474 B
CUE
"testdef": {
|
|
type: "component"
|
|
annotations: {
|
|
"definition.oam.dev/example-url": "http://127.0.0.1:65501/examples/applications/create-namespace.yaml"
|
|
}
|
|
labels: {}
|
|
description: "K8s-objects allow users to specify raw K8s objects in properties"
|
|
attributes: workload: type: "autodetects.core.oam.dev"
|
|
}
|
|
template: {
|
|
outputs: {
|
|
for i, v in parameter.objects {
|
|
if i > 0 {
|
|
"objects-\(i)": v
|
|
}
|
|
}
|
|
}
|
|
parameter: {
|
|
// +usage=A test key
|
|
objects: [...{}]
|
|
}
|
|
}
|