Cluster Workflow Template Workflow Template Ref With Entrypoint Arg Passing
Note
This example is a replication of an Argo Workflow example in Hera.
The upstream example can be found here.
| from hera.workflows import (
Parameter,
Workflow,
models as m,
)
w = Workflow(
generate_name="cluster-workflow-template-hello-world-",
entrypoint="print-message",
arguments=Parameter(name="message", value="hello world"),
workflow_template_ref=m.WorkflowTemplateRef(
name="cluster-workflow-template-print-message",
cluster_scope=True,
),
)
|
| apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: cluster-workflow-template-hello-world-
spec:
entrypoint: print-message
arguments:
parameters:
- name: message
value: hello world
workflowTemplateRef:
name: cluster-workflow-template-print-message
clusterScope: true
|