A machine-readable index of this documentation for AI agents is available at https://kubevela.io/llms.txt. Markdown versions of documentation pages are available by appending .md to their URLs.
Skip to main content
Version: Workflow Next

Introduction

KubeVela Workflow is the engine that runs a list of steps in order, waits for approval, branches on conditions and passes data from one step to the next. The same engine, from kubevela/workflow, runs in two places:

WhereWhat runs itUse it for
An Application's spec.workflowvela-core, which embeds the engineDelivering the Application's components: deploy to staging, approve, deploy to production.
A WorkflowRunthe vela-workflow controller, installed by the vela-workflow addon or its own chartA one-off pipeline outside any Application: a release across several Applications, a migration, a scheduled check. See Run a Workflow without an Application.

Steps behave the same in both. The pages under Guides apply to either, and their examples use whichever shows the feature best.

A workflow is a list of steps. Each step has a type: one of the built-in step types (suspend, notification, request, step-group and more), or a type your platform team has written. Each step type says whether it works in an Application, a WorkflowRun or both.

note

The webhook and request steps and the HTTP channels of the notification step (DingTalk, Lark, Slack) block cloud metadata and link-local destinations by default. See Workflow Outbound HTTP Protection.

Who it's for​

You areStart with
Delivering an Application with KubeVela, and want approval gates, ordering or notificationsQuick Start: in an Application, then the Guides
Running a pipeline that isn't one Application: a release across several, a batch of Jobs, an HTTP checkInstall the vela-workflow controller, then the Quick Start
A platform engineer adding step types of your ownSteps, Workflows and WorkflowRuns, then Workflow Step Definition
Building on the engine in Go, or contributing to itContributor Onboarding

How it relates to KubeVela​

The engine lives in its own repository, kubevela/workflow, and KubeVela imports it. vela-core runs an Application's workflow with the engine version it was built with, so upgrading KubeVela upgrades the engine for Applications. The vela-workflow controller is a separate install with its own version, and runs WorkflowRuns whether KubeVela is there or not. Steps that work on an Application's components need vela-core; every other step type works in both.

This section is versioned by the engine. KubeVela 1.12 embeds 0.8, 1.11 embeds 0.7, and 1.10 and 1.9 embed 0.6: the full table, and the vela-workflow chart and addon versions that go with each, are in Versions.

How a workflow runs​

Steps run one after another by default (StepByStep). To run them in parallel, make a step wait for others with dependsOn, switch the mode to DAG, or group them: see Order Steps: Groups, Dependencies and DAG Mode. A run and each of its steps go through phases (executing, suspending, succeeded and so on), described in Phases and the WorkflowRun Lifecycle. How the engine retries a step that waits or fails is in Workflow Working Mechanism.

An Application has phases of its own around the workflow's, and generates a workflow when you write none: both are in KubeVela's Application Workflow overview.

What you can do with a workflow​

I want to...Page
Wait for approval before carrying onSuspend and Resume
Run steps in parallel, in a set order, or in groupsOrder Steps
Run a step only when an earlier one failed, or skip itIf Conditions
Pass a value from one step to the nextData Passing
Stop a step that hangsTimeout of Step
Repeat steps over a listRepeating Steps with forEach
Suspend, resume, terminate or restart a running workflowWorkflow Operations
Run a pipeline without an ApplicationRun a Workflow without an Application
Find out why a step failedDebug Workflow

Next steps​