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