github.com/oam-dev/kubevela@v1.9.11/charts/vela-core/templates/defwithtemplate/export2config.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/export2config.cue 3 apiVersion: core.oam.dev/v1beta1 4 kind: WorkflowStepDefinition 5 metadata: 6 annotations: 7 custom.definition.oam.dev/category: Resource Management 8 definition.oam.dev/description: Export data to specified Kubernetes ConfigMap in your workflow. 9 name: export2config 10 namespace: {{ include "systemDefinitionNamespace" . }} 11 spec: 12 schematic: 13 cue: 14 template: | 15 import ( 16 "vela/op" 17 ) 18 19 apply: op.#Apply & { 20 value: { 21 apiVersion: "v1" 22 kind: "ConfigMap" 23 metadata: { 24 name: parameter.configName 25 if parameter.namespace != _|_ { 26 namespace: parameter.namespace 27 } 28 if parameter.namespace == _|_ { 29 namespace: context.namespace 30 } 31 } 32 data: parameter.data 33 } 34 cluster: parameter.cluster 35 } 36 parameter: { 37 // +usage=Specify the name of the config map 38 configName: string 39 // +usage=Specify the namespace of the config map 40 namespace?: string 41 // +usage=Specify the data of config map 42 data: {} 43 // +usage=Specify the cluster of the config map 44 cluster: *"" | string 45 } 46