Skip to content

Workflow Template Workflow Template Ref

Note

This example is a replication of an Argo Workflow example in Hera. The upstream example can be found here.

1
2
3
4
5
6
7
8
9
from hera.workflows import Workflow
from hera.workflows.models import WorkflowTemplateRef

wt_ref = WorkflowTemplateRef(name="workflow-template-submittable")

w = Workflow(
    generate_name="workflow-template-hello-world-",
    workflow_template_ref=wt_ref,
)
1
2
3
4
5
6
7
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
  generateName: workflow-template-hello-world-
spec:
  workflowTemplateRef:
    name: workflow-template-submittable

Comments