github.com/oam-dev/kubevela@v1.9.11/charts/vela-core/templates/defwithtemplate/list-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/list-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: List the configs 9 name: list-config 10 namespace: {{ include "systemDefinitionNamespace" . }} 11 spec: 12 schematic: 13 cue: 14 template: | 15 import ( 16 "vela/op" 17 ) 18 19 output: op.#ListConfig & { 20 if parameter.namespace != _|_ { 21 namespace: parameter.namespace 22 } 23 if parameter.namespace == _|_ { 24 namespace: context.namespace 25 } 26 template: parameter.template 27 } 28 parameter: { 29 //+usage=Specify the template of the config. 30 template: string 31 //+usage=Specify the namespace of the config. 32 namespace?: string 33 } 34