github.com/kubevela/workflow@v0.6.0/charts/vela-workflow/templates/definitions/create-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/create-config.cue 3 apiVersion: core.oam.dev/v1beta1 4 kind: WorkflowStepDefinition 5 metadata: 6 annotations: 7 definition.oam.dev/description: Create or update a config 8 name: create-config 9 namespace: {{ include "systemDefinitionNamespace" . }} 10 spec: 11 schematic: 12 cue: 13 template: | 14 import ( 15 "vela/op" 16 ) 17 18 deploy: op.#CreateConfig & { 19 name: parameter.name 20 if parameter.namespace != _|_ { 21 namespace: parameter.namespace 22 } 23 if parameter.namespace == _|_ { 24 namespace: context.namespace 25 } 26 if parameter.template != _|_ { 27 template: parameter.template 28 } 29 config: parameter.config 30 } 31 parameter: { 32 //+usage=Specify the name of the config. 33 name: string 34 35 //+usage=Specify the namespace of the config. 36 namespace?: string 37 38 //+usage=Specify the template of the config. 39 template?: string 40 41 //+usage=Specify the content of the config. 42 config: {...} 43 } 44