github.com/kubevela/workflow@v0.6.0/charts/vela-workflow/templates/definitions/apply-object.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/apply-object.cue
     3  apiVersion: core.oam.dev/v1beta1
     4  kind: WorkflowStepDefinition
     5  metadata:
     6    annotations:
     7      definition.oam.dev/description: Apply raw kubernetes objects for your workflow steps
     8    labels:
     9      custom.definition.oam.dev/ui-hidden: "true"
    10    name: apply-object
    11    namespace: {{ include "systemDefinitionNamespace" . }}
    12  spec:
    13    schematic:
    14      cue:
    15        template: |
    16          import (
    17          	"vela/op"
    18          )
    19  
    20          apply: op.#Apply & {
    21          	value:   parameter.value
    22          	cluster: parameter.cluster
    23          }
    24          parameter: {
    25          	// +usage=Specify Kubernetes native resource object to be applied
    26          	value: {...}
    27          	// +usage=The cluster you want to apply the resource to, default is the current control plane cluster
    28          	cluster: *"" | string
    29          }
    30