github.com/oam-dev/kubevela@v1.9.11/charts/vela-core/templates/defwithtemplate/read-config.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/read-config.cue 3 apiVersion: core.oam.dev/v1beta1 4 kind: WorkflowStepDefinition 5 metadata: 6 annotations: 7 custom.definition.oam.dev/category: Config Management 8 definition.oam.dev/description: Read a config 9 name: read-config 10 namespace: {{ include "systemDefinitionNamespace" . }} 11 spec: 12 schematic: 13 cue: 14 template: | 15 import ( 16 "vela/op" 17 ) 18 19 output: op.#ReadConfig & { 20 name: parameter.name 21 if parameter.namespace != _|_ { 22 namespace: parameter.namespace 23 } 24 if parameter.namespace == _|_ { 25 namespace: context.namespace 26 } 27 } 28 parameter: { 29 //+usage=Specify the name of the config. 30 name: string 31 32 //+usage=Specify the namespace of the config. 33 namespace?: string 34 } 35