github.com/oam-dev/kubevela@v1.9.11/charts/vela-core/templates/defwithtemplate/override.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/override.cue 3 apiVersion: core.oam.dev/v1beta1 4 kind: PolicyDefinition 5 metadata: 6 annotations: 7 definition.oam.dev/description: Describe the configuration to override when deploying resources, it only works with specified `deploy` step in workflow. 8 name: override 9 namespace: {{ include "systemDefinitionNamespace" . }} 10 spec: 11 schematic: 12 cue: 13 template: | 14 #PatchParams: { 15 // +usage=Specify the name of the patch component, if empty, all components will be merged 16 name?: string 17 // +usage=Specify the type of the patch component. 18 type?: string 19 // +usage=Specify the properties to override. 20 properties?: {...} 21 // +usage=Specify the traits to override. 22 traits?: [...{ 23 // +usage=Specify the type of the trait to be patched. 24 type: string 25 // +usage=Specify the properties to override. 26 properties?: {...} 27 // +usage=Specify if the trait should be remove, default false 28 disable: *false | bool 29 }] 30 } 31 32 parameter: { 33 // +usage=Specify the overridden component configuration. 34 components: [...#PatchParams] 35 // +usage=Specify a list of component names to use, if empty, all components will be selected. 36 selector?: [...string] 37 } 38