github.com/oam-dev/kubevela@v1.9.11/charts/vela-core/templates/defwithtemplate/share-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/share-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: Sync secrets created by terraform component to runtime clusters so that runtime clusters can share the created cloud resource. 9 labels: 10 custom.definition.oam.dev/scope: Application 11 name: share-cloud-resource 12 namespace: {{ include "systemDefinitionNamespace" . }} 13 spec: 14 schematic: 15 cue: 16 template: | 17 import ( 18 "vela/op" 19 ) 20 21 app: op.#ShareCloudResource & { 22 env: parameter.env 23 policy: parameter.policy 24 placements: parameter.placements 25 // context.namespace indicates the namespace of the app 26 namespace: context.namespace 27 // context.namespace indicates the name of the app 28 name: context.name 29 } 30 31 parameter: { 32 // +usage=Declare the location to bind 33 placements: [...{ 34 namespace?: string 35 cluster?: string 36 }] 37 // +usage=Declare the name of the env-binding policy, if empty, the first env-binding policy will be used 38 policy: *"" | string 39 // +usage=Declare the name of the env in policy 40 env: string 41 } 42