Skip to content

Workflows Examples

Hera has complete feature parity with YAML as a definition language for Argo Workflows.

The examples show off features and idiomatic usage of Hera such as the Coinflip example recreated using the script decorator.

The “Upstream” collection contains examples directly from the Argo Workflows repository, such as the DAG Diamond example, to demonstrate how the YAML spec maps to Hera classes. They may not be written as idiomatic Hera code (for example, using Container when a script decorator would be preferred).

If you’d like to contribute missing examples, please see the table below and follow the Contributing Guide!

Explore the examples through the side bar!

List of missing examples

You can help by contributing these examples!

Example
artifact-passing-explicit-plugin
cluster-workflow-template/clustertemplates
configmaps/simple-parameters-configmap
cron-backfill
dag-disable-failFast
dag-inline-clusterworkflowtemplate
dag-inline-cronworkflow
dag-inline-workflow
data-transformations
expression-destructure-json
expression-destructure-json-complex
expression-reusing-verbose-snippets
fibonacci-seq-conditional-param
memoize-simple
parameter-aggregation
parameter-aggregation-script
pod-spec-from-previous-step
scripts-bash
scripts-javascript
testvolume
work-avoidance
workflow-count-resourcequota
workflow-event-binding/event-consumer-workfloweventbinding
workflow-event-binding/github-path-filter-workfloweventbinding
workflow-event-binding/github-path-filter-workflowtemplate
workflow-template/templates

Comments