mirror of
https://github.com/kubevela/kubevela.git
synced 2026-05-19 15:56:54 +00:00
32 lines
724 B
CUE
32 lines
724 B
CUE
import (
|
|
"vela/op"
|
|
)
|
|
|
|
"deploy-cloud-resource": {
|
|
type: "workflow-step"
|
|
annotations: {
|
|
"category": "Application Delivery"
|
|
}
|
|
labels: {
|
|
"scope": "Application"
|
|
}
|
|
description: "Deploy cloud resource and deliver secret to multi 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
|
|
}
|
|
}
|