mirror of
https://github.com/kubevela/kubevela.git
synced 2026-02-14 10:00:06 +00:00
* refactor: use cuex engine Signed-off-by: FogDong <fog@bentoml.com> * fix: fix lint Signed-off-by: FogDong <fog@bentoml.com> * fix: fix unit test Signed-off-by: FogDong <fog@bentoml.com> * fix: fix static check and sdk tests Signed-off-by: FogDong <fog@bentoml.com> * fix: fix testdata Signed-off-by: FogDong <fog@bentoml.com> * fix: fix velaql unit test Signed-off-by: FogDong <fog@bentoml.com> * fix: fix docgen parser Signed-off-by: FogDong <fog@bentoml.com> * fix: fix cuegen Signed-off-by: FogDong <fog@bentoml.com> * fix: fix velaql Signed-off-by: FogDong <fog@bentoml.com> * fix: delete useless print Signed-off-by: FogDong <fog@bentoml.com> * fix: set client for ql Signed-off-by: FogDong <fog@bentoml.com> * fix: fix mt tests Signed-off-by: FogDong <fog@bentoml.com> * fix: set kubeclient in generator Signed-off-by: FogDong <fog@bentoml.com> * fix: use pass kube client Signed-off-by: FogDong <fog@bentoml.com> * fix: simplify ql Signed-off-by: FogDong <fog@bentoml.com> * fix: fix lint Signed-off-by: FogDong <fog@bentoml.com> * fix: add wf debug back Signed-off-by: FogDong <fog@bentoml.com> * fix: add loader Signed-off-by: FogDong <fog@bentoml.com> --------- Signed-off-by: FogDong <fog@bentoml.com>
71 lines
2.0 KiB
YAML
71 lines
2.0 KiB
YAML
# Code generated by KubeVela templates. DO NOT EDIT. Please edit the original cue file.
|
|
# Definition source cue file: vela-templates/definitions/internal/export-data.cue
|
|
apiVersion: core.oam.dev/v1beta1
|
|
kind: WorkflowStepDefinition
|
|
metadata:
|
|
annotations:
|
|
custom.definition.oam.dev/category: Application Delivery
|
|
definition.oam.dev/description: Export data to clusters specified by topology.
|
|
labels:
|
|
custom.definition.oam.dev/scope: Application
|
|
name: export-data
|
|
namespace: {{ include "systemDefinitionNamespace" . }}
|
|
spec:
|
|
schematic:
|
|
cue:
|
|
template: |
|
|
import (
|
|
"vela/op"
|
|
)
|
|
|
|
object: {
|
|
apiVersion: "v1"
|
|
kind: parameter.kind
|
|
metadata: {
|
|
name: *context.name | string
|
|
namespace: *context.namespace | string
|
|
if parameter.name != _|_ {
|
|
name: parameter.name
|
|
}
|
|
if parameter.namespace != _|_ {
|
|
namespace: parameter.namespace
|
|
}
|
|
}
|
|
if parameter.kind == "ConfigMap" {
|
|
data: parameter.data
|
|
}
|
|
if parameter.kind == "Secret" {
|
|
stringData: parameter.data
|
|
}
|
|
}
|
|
|
|
getPlacements: op.#GetPlacementsFromTopologyPolicies & {
|
|
policies: *[] | [...string]
|
|
if parameter.topology != _|_ {
|
|
policies: [parameter.topology]
|
|
}
|
|
}
|
|
|
|
apply: op.#Steps & {
|
|
for p in getPlacements.placements {
|
|
(p.cluster): op.#Apply & {
|
|
value: object
|
|
cluster: p.cluster
|
|
}
|
|
}
|
|
}
|
|
|
|
parameter: {
|
|
// +usage=Specify the name of the export destination
|
|
name?: string
|
|
// +usage=Specify the namespace of the export destination
|
|
namespace?: string
|
|
// +usage=Specify the kind of the export destination
|
|
kind: *"ConfigMap" | "Secret"
|
|
// +usage=Specify the data to export
|
|
data: {}
|
|
// +usage=Specify the topology to export
|
|
topology?: string
|
|
}
|
|
|