github.com/oam-dev/kubevela@v1.9.11/charts/vela-core/templates/defwithtemplate/envbinding.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/envbinding.cue 3 apiVersion: core.oam.dev/v1beta1 4 kind: PolicyDefinition 5 metadata: 6 annotations: 7 definition.oam.dev/description: Determining the destination where components should be deployed to, and support override configuration 8 labels: 9 custom.definition.oam.dev/deprecated: "true" 10 name: envbinding 11 namespace: {{ include "systemDefinitionNamespace" . }} 12 spec: 13 schematic: 14 cue: 15 template: | 16 #PatchParams: { 17 // +usage=Specify the name of the patch component, if empty, all components will be merged 18 name?: string 19 // +usage=Specify the type of the patch component. 20 type?: string 21 properties?: {...} 22 traits?: [...{ 23 type: string 24 properties?: {...} 25 // +usage=Specify if the trait should be remove, default false 26 disable: *false | bool 27 }] 28 } 29 30 parameter: envs: [...{ 31 name: string 32 placement?: { 33 clusterSelector?: { 34 // +usage=Specify cluster name, defualt local 35 name: *"local" | string 36 labels?: [string]: string 37 } 38 namespaceSelector?: { 39 // +usage=Specify namespace name. 40 name?: string 41 labels?: [string]: string 42 } 43 } 44 selector?: components: [...string] 45 patch?: components: [...#PatchParams] 46 }] 47