github.com/oam-dev/kubevela@v1.9.11/vela-templates/definitions/internal/workflowstep/deploy-cloud-resource.cue (about) 1 import ( 2 "vela/op" 3 ) 4 5 "deploy-cloud-resource": { 6 type: "workflow-step" 7 annotations: { 8 "category": "Application Delivery" 9 } 10 labels: { 11 "scope": "Application" 12 } 13 description: "Deploy cloud resource and deliver secret to multi clusters." 14 } 15 template: { 16 app: op.#DeployCloudResource & { 17 env: parameter.env 18 policy: parameter.policy 19 // context.namespace indicates the namespace of the app 20 namespace: context.namespace 21 // context.namespace indicates the name of the app 22 name: context.name 23 } 24 25 parameter: { 26 // +usage=Declare the name of the env-binding policy, if empty, the first env-binding policy will be used 27 policy: *"" | string 28 // +usage=Declare the name of the env in policy 29 env: string 30 } 31 }