github.com/oam-dev/kubevela@v1.9.11/charts/vela-core/templates/defwithtemplate/deploy2env.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/deprecated/deploy2env.cue 3 apiVersion: core.oam.dev/v1beta1 4 kind: WorkflowStepDefinition 5 metadata: 6 annotations: 7 definition.oam.dev/description: Deploy env binding component to target env 8 labels: 9 custom.definition.oam.dev/deprecated: "true" 10 custom.definition.oam.dev/scope: Application 11 custom.definition.oam.dev/ui-hidden: "true" 12 name: deploy2env 13 namespace: {{ include "systemDefinitionNamespace" . }} 14 spec: 15 schematic: 16 cue: 17 template: | 18 import ( 19 "vela/op" 20 ) 21 22 app: op.#ApplyEnvBindApp & { 23 env: parameter.env 24 policy: parameter.policy 25 parallel: parameter.parallel 26 app: context.name 27 // context.namespace indicates the namespace of the app 28 namespace: context.namespace 29 } 30 31 parameter: { 32 // +usage=Declare the name of the env-binding policy, if empty, the first env-binding policy will be used 33 policy: *"" | string 34 // +usage=Declare the name of the env in policy 35 env: string 36 // +usage=components are applied in parallel 37 parallel: *false | bool 38 } 39