mirror of
https://github.com/kubevela/kubevela.git
synced 2026-02-14 10:00:06 +00:00
30 lines
958 B
YAML
30 lines
958 B
YAML
# Code generated by KubeVela templates. DO NOT EDIT. Please edit the original cue file.
|
|
# Definition source cue file: vela-templates/definitions/internal/apply-object.cue
|
|
apiVersion: core.oam.dev/v1beta1
|
|
kind: WorkflowStepDefinition
|
|
metadata:
|
|
annotations:
|
|
custom.definition.oam.dev/category: Resource Management
|
|
definition.oam.dev/description: Apply raw kubernetes objects for your workflow steps
|
|
name: apply-object
|
|
namespace: {{ include "systemDefinitionNamespace" . }}
|
|
spec:
|
|
schematic:
|
|
cue:
|
|
template: |
|
|
import (
|
|
"vela/op"
|
|
)
|
|
|
|
apply: op.#Apply & {
|
|
value: parameter.value
|
|
cluster: parameter.cluster
|
|
}
|
|
parameter: {
|
|
// +usage=Specify Kubernetes native resource object to be applied
|
|
value: {...}
|
|
// +usage=The cluster you want to apply the resource to, default is the current control plane cluster
|
|
cluster: *"" | string
|
|
}
|
|
|