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
28 lines
648 B
CUE
28 lines
648 B
CUE
import (
|
|
"vela/op"
|
|
)
|
|
|
|
"deploy-cloud-resource": {
|
|
type: "workflow-step"
|
|
annotations: {}
|
|
labels: {}
|
|
description: "Deploy cloud resource and bind secret to clusters"
|
|
}
|
|
template: {
|
|
app: op.#DeployCloudResource & {
|
|
env: parameter.env
|
|
policy: parameter.policy
|
|
// context.namespace indicates the namespace of the app
|
|
namespace: context.namespace
|
|
// context.namespace indicates the name of the app
|
|
name: context.name
|
|
}
|
|
|
|
parameter: {
|
|
// +usage=Declare the name of the env-binding policy, if empty, the first env-binding policy will be used
|
|
policy: *"" | string
|
|
// +usage=Declare the name of the env in policy
|
|
env: string
|
|
}
|
|
}
|