Argo Workflows
Argo Workflows is the execution engine. The controller hands it a stack intent. Your team defines the pipeline that will run, including its images, stages, credentials and decision points.
Workflow, WorkflowTemplate, and alias
| Term | What it means |
|---|---|
WorkflowTemplate | A reusable pipeline definition in Kubernetes. It describes its entry point, inputs, and steps or DAG tasks. |
Workflow | One execution of that pipeline. Inspect this resource in Argo to follow running steps, approvals, outputs and failures. |
| Alias | The registered name a stack selects through spec.workflowRef.name. The controller configuration maps it to a template, namespace, ServiceAccount and execution contract. |
The example below is the entry point and transport portion of the direct-apply template. The published YAML declares the runner and scoped RBAC; the runner script is a separate file.
apiVersion: argoproj.io/v1alpha1
kind: WorkflowTemplate
metadata:
name: iacstack-quickstart-direct
namespace: argo-workflows
spec:
entrypoint: direct
serviceAccountName: iacstack-quickstart
arguments:
parameters:
- name: intent
The intent parameter carries the stack request. The runner reads it with iacstack intent read, resolves the Git revision and state binding, and reports the execution result. The template exposes those outputs to the adapter so the controller can record the outcome. The downloadable source fixture uses a local runner tag; the Helm quickstart replaces it with the versioned GHCR image. Full workflow manifest · direct node script
Configure your own pipeline
- Define the execution shape. Use
stepsfor sequential phases or adagfor explicit dependencies. Choose the images for validate, plan, policy, review and apply. The direct lab uses one runner step. A governed pipeline can split the work into independent steps and pass the same saved plan between them. - Create a workflow identity. Give the ServiceAccount permissions to publish Argo task results and to access the intended target and state backend. Keep the runner and permissions scoped to that workflow.
- Register the integration. Set the alias, WorkflowTemplate, namespace, ServiceAccount and contract mapping in the controller. Configure the authorization mode. Use the alias in the stack.
- Report the outcome. Pass the resolved source and target binding, any progress the workflow observes, and the final result. Workflows with authorization enabled request and claim the controller grant before applying. Human approval can be modeled as a separate Argo suspension step.
In the Kind quickstart, inspect the template and its executions after applying the manifests:
kubectl -n argo-workflows get workflowtemplate iacstack-quickstart-direct
kubectl -n argo-workflows get workflow -l iacstack.io/stack-name=hello-stack
Use Get started to run the direct path. The workflow tutorials cover approval, OPA, Checkov and Infracost. The execution contract defines the signals for custom integrations.
Next: create and register your own workflow, build a runner image, or learn the CLI commands.