github.com/oam-dev/kubevela@v1.9.11/charts/vela-core/templates/defwithtemplate/deploy.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/deploy.cue
     3  apiVersion: core.oam.dev/v1beta1
     4  kind: WorkflowStepDefinition
     5  metadata:
     6    annotations:
     7      custom.definition.oam.dev/category: Application Delivery
     8      definition.oam.dev/description: A powerful and unified deploy step for components multi-cluster delivery with policies.
     9    labels:
    10      custom.definition.oam.dev/scope: Application
    11    name: deploy
    12    namespace: {{ include "systemDefinitionNamespace" . }}
    13  spec:
    14    schematic:
    15      cue:
    16        template: |
    17          import (
    18          	"vela/op"
    19          )
    20  
    21          if parameter.auto == false {
    22          	suspend: op.#Suspend & {message: "Waiting approval to the deploy step \"\(context.stepName)\""}
    23          }
    24          deploy: op.#Deploy & {
    25          	policies:                 parameter.policies
    26          	parallelism:              parameter.parallelism
    27          	ignoreTerraformComponent: parameter.ignoreTerraformComponent
    28          }
    29          parameter: {
    30          	//+usage=If set to false, the workflow will suspend automatically before this step, default to be true.
    31          	auto: *true | bool
    32          	//+usage=Declare the policies that used for this deployment. If not specified, the components will be deployed to the hub cluster.
    33          	policies: *[] | [...string]
    34          	//+usage=Maximum number of concurrent delivered components.
    35          	parallelism: *5 | int
    36          	//+usage=If set false, this step will apply the components with the terraform workload.
    37          	ignoreTerraformComponent: *true | bool
    38          }
    39