mirror of
https://github.com/kubevela/kubevela.git
synced 2026-05-24 10:13:01 +00:00
* Feat: add components and storage api-oriented defs * add some examples * change the dir * resolve comments * make reviewable * fix example * add labels and annotations in component * add config map ref key in env * add more traits * add wfstep defs and rename * fmt the cue * re-struct all the definitions * revert deprecated defs and add webhook def * delete useless network trait * fix generated tab * fix indent * fix webservice * add labels * comment webservice and worker's health check * fix retainkeys * fix webservice and worker's health check * add suspend def which will be replaced by internal def * fix cli and add labels * fix script * add ignore * fix healthscope example
22 lines
379 B
CUE
22 lines
379 B
CUE
"k8s-objects": {
|
|
type: "component"
|
|
annotations: {}
|
|
labels: {}
|
|
description: "K8s-objects allow users to specify raw K8s objects in properties"
|
|
attributes: workload: type: "autodetects.core.oam.dev"
|
|
}
|
|
template: {
|
|
output: parameter.objects[0]
|
|
|
|
outputs: {
|
|
for i, v in parameter.objects {
|
|
if i > 0 {
|
|
"objects-\(i)": v
|
|
}
|
|
}
|
|
}
|
|
parameter: {
|
|
objects: [...{}]
|
|
}
|
|
}
|