github.com/oam-dev/kubevela@v1.9.11/vela-templates/definitions/internal/workflowstep/read-config.cue (about) 1 import ( 2 "vela/op" 3 ) 4 5 "read-config": { 6 type: "workflow-step" 7 annotations: { 8 "category": "Config Management" 9 } 10 labels: {} 11 description: "Read a config" 12 } 13 template: { 14 output: op.#ReadConfig & { 15 name: parameter.name 16 if parameter.namespace != _|_ { 17 namespace: parameter.namespace 18 } 19 if parameter.namespace == _|_ { 20 namespace: context.namespace 21 } 22 } 23 parameter: { 24 //+usage=Specify the name of the config. 25 name: string 26 27 //+usage=Specify the namespace of the config. 28 namespace?: string 29 } 30 }