github.com/kubevela/workflow@v0.6.0/e2e/test-data/definitions/list-config.yaml (about) 1 apiVersion: core.oam.dev/v1beta1 2 kind: WorkflowStepDefinition 3 metadata: 4 annotations: 5 definition.oam.dev/description: List the configs 6 name: list-config 7 namespace: vela-system 8 spec: 9 schematic: 10 cue: 11 template: | 12 import ( 13 "vela/op" 14 ) 15 output: op.#ListConfig & { 16 if parameter.namespace != _|_ { 17 namespace: parameter.namespace 18 } 19 if parameter.namespace == _|_ { 20 namespace: context.namespace 21 } 22 template: parameter.template 23 } 24 parameter: { 25 //+usage=Specify the template of the config. 26 template: string 27 //+usage=Specify the namespace of the config. 28 namespace?: string 29 }