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