mirror of
https://github.com/kubevela/kubevela.git
synced 2026-02-14 10:00:06 +00:00
47 lines
1.4 KiB
YAML
47 lines
1.4 KiB
YAML
# Code generated by KubeVela templates. DO NOT EDIT. Please edit the original cue file.
|
|
# Definition source cue file: vela-templates/definitions/internal/export2config.cue
|
|
apiVersion: core.oam.dev/v1beta1
|
|
kind: WorkflowStepDefinition
|
|
metadata:
|
|
annotations:
|
|
custom.definition.oam.dev/category: Resource Management
|
|
definition.oam.dev/description: Export data to specified Kubernetes ConfigMap in your workflow.
|
|
name: export2config
|
|
namespace: {{ include "systemDefinitionNamespace" . }}
|
|
spec:
|
|
schematic:
|
|
cue:
|
|
template: |
|
|
import (
|
|
"vela/op"
|
|
)
|
|
|
|
apply: op.#Apply & {
|
|
value: {
|
|
apiVersion: "v1"
|
|
kind: "ConfigMap"
|
|
metadata: {
|
|
name: parameter.configName
|
|
if parameter.namespace != _|_ {
|
|
namespace: parameter.namespace
|
|
}
|
|
if parameter.namespace == _|_ {
|
|
namespace: context.namespace
|
|
}
|
|
}
|
|
data: parameter.data
|
|
}
|
|
cluster: parameter.cluster
|
|
}
|
|
parameter: {
|
|
// +usage=Specify the name of the config map
|
|
configName: string
|
|
// +usage=Specify the namespace of the config map
|
|
namespace?: string
|
|
// +usage=Specify the data of config map
|
|
data: {}
|
|
// +usage=Specify the cluster of the config map
|
|
cluster: *"" | string
|
|
}
|
|
|