github.com/oam-dev/kubevela@v1.9.11/charts/vela-core/templates/defwithtemplate/deploy-cloud-resource.yaml (about) 1 # Code generated by KubeVela templates. DO NOT EDIT. Please edit the original cue file. 2 # Definition source cue file: vela-templates/definitions/internal/deploy-cloud-resource.cue 3 apiVersion: core.oam.dev/v1beta1 4 kind: WorkflowStepDefinition 5 metadata: 6 annotations: 7 custom.definition.oam.dev/category: Application Delivery 8 definition.oam.dev/description: Deploy cloud resource and deliver secret to multi clusters. 9 labels: 10 custom.definition.oam.dev/scope: Application 11 name: deploy-cloud-resource 12 namespace: {{ include "systemDefinitionNamespace" . }} 13 spec: 14 schematic: 15 cue: 16 template: | 17 import ( 18 "vela/op" 19 ) 20 21 app: op.#DeployCloudResource & { 22 env: parameter.env 23 policy: parameter.policy 24 // context.namespace indicates the namespace of the app 25 namespace: context.namespace 26 // context.namespace indicates the name of the app 27 name: context.name 28 } 29 30 parameter: { 31 // +usage=Declare the name of the env-binding policy, if empty, the first env-binding policy will be used 32 policy: *"" | string 33 // +usage=Declare the name of the env in policy 34 env: string 35 } 36