Files
kubevela/vela-templates/definitions/internal/deploy-cloud-resource.cue
T
SomefiveandGitHub 34aa74ff48 Feat: envbinding support cloud resource deploy and share (#2734)
* Feat: envbinding support cloud resource deploy and bind

* Fix: change bind-cloud-resource to share-cloud-resource
2021-11-20 13:07:27 +08:00

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
}
}