Skip to content

Workflows Examples

Hera has complete feature parity with YAML as a definition language for Argo Workflows. To demonstrate the equivalency (and improvements that Hera offers), we provide two collections of examples.

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. These examples are generated and compared in Hera’s CI/CD pipeline to ensure that all the examples are possible to recreate in Hera.

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

The “Hera” collection shows off features and idiomatic usage of Hera such as the Coinflip example using the script decorator.

Explore the examples through the side bar!

List of missing examples

You can help by contributing these examples!

Example
artifacts-workflowtemplate
buildkit-template
ci
cluster-workflow-template/clustertemplates
conditional-parameters
conditionals
conditionals-complex
configmaps/simple-parameters-configmap
cron-backfill
daemon-step
daemoned-stateful-set-with-service
dag-coinflip
dag-conditional-artifacts
dag-continue-on-fail
dag-daemon-task
dag-diamond-steps
dag-disable-failFast
dag-inline-clusterworkflowtemplate
dag-inline-cronworkflow
dag-inline-workflow
dag-multiroot
data-transformations
dns-config
exit-code-output-variable
exit-handler-dag-level
exit-handler-slack
exit-handler-with-param
exit-handlers
expression-destructure-json
expression-reusing-verbose-snippets
expression-tag-template-workflow
fibonacci-seq-conditional-param
fun-with-gifs
gc-ttl
global-outputs
global-parameters-from-configmap
handle-large-output-results
hello-hybrid
hello-windows
hello-world
http-hello-world
http-success-condition
influxdb-ci
intermediate-parameters
k8s-jobs
k8s-orchestration
k8s-owner-reference
k8s-patch
k8s-patch-basic
k8s-wait-wf
label-value-from-workflow
loops-param-argument
loops-sequence
map-reduce
memoize-simple
nested-workflow
parallelism-nested-workflow
parameter-aggregation
parameter-aggregation-dag
parameter-aggregation-script
pod-gc-strategy
pod-gc-strategy-with-label-selector
pod-metadata
pod-metadata-wf-field
pod-spec-from-previous-step
pod-spec-patch
pod-spec-yaml-patch
recursive-for-loop
resource-flags
resubmit
retry-conditional
retry-container-to-completion
retry-on-error
retry-with-steps
scripts-bash
scripts-javascript
scripts-python
secrets
status-reference
step-level-timeout
synchronization-mutex-wf-level
template-defaults
testvolume
timeouts-step
title-and-description-with-markdown
withsequence-nested-result
work-avoidance
workflow-count-resourcequota
workflow-event-binding/event-consumer-workfloweventbinding
workflow-template/templates

Comments