You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/cluster-workflow-templates.md
+14-14Lines changed: 14 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,16 +15,16 @@ can be created cluster scoped like `ClusterRole` and can be accessed across all
15
15
apiVersion: argoproj.io/v1alpha1
16
16
kind: ClusterWorkflowTemplate
17
17
metadata:
18
-
name: cluster-workflow-template-whalesay-template
18
+
name: cluster-workflow-template-print-message
19
19
spec:
20
20
templates:
21
-
- name: whalesay-template
21
+
- name: print-message
22
22
inputs:
23
23
parameters:
24
24
- name: message
25
25
container:
26
-
image: docker/whalesay
27
-
command: [cowsay]
26
+
image: busybox
27
+
command: [echo]
28
28
args: ["{{inputs.parameters.message}}"]
29
29
```
30
30
@@ -41,14 +41,14 @@ kind: Workflow
41
41
metadata:
42
42
generateName: workflow-template-hello-world-
43
43
spec:
44
-
entrypoint: whalesay
44
+
entrypoint: hello-world
45
45
templates:
46
-
- name: whalesay
46
+
- name: hello-world
47
47
steps: # You should only reference external "templates" in a "steps" or "dag" "template".
48
-
- - name: call-whalesay-template
48
+
- - name: call-print-message
49
49
templateRef: # You can reference a "template" from another "WorkflowTemplate or ClusterWorkflowTemplate" using this field
50
-
name: cluster-workflow-template-whalesay-template # This is the name of the "WorkflowTemplate or ClusterWorkflowTemplate" CRD that contains the "template" you want
51
-
template: whalesay-template # This is the name of the "template" you want to reference
50
+
name: cluster-workflow-template-print-message # This is the name of the "WorkflowTemplate or ClusterWorkflowTemplate" CRD that contains the "template" you want
51
+
template: print-message # This is the name of the "template" you want to reference
52
52
clusterScope: true # This field indicates this templateRef is pointing ClusterWorkflowTemplate
Copy file name to clipboardExpand all lines: docs/events.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,7 +40,7 @@ The event endpoint will always return in under 10 seconds because the event will
40
40
## Workflow Template triggered by the event
41
41
42
42
Before the binding between an event and a workflow template, you must create the workflow template that you want to trigger.
43
-
The following one takes in input the "message" parameter specified into the API call body, passed through the `WorkflowEventBinding` parameters section, and finally resolved here as the message of the `whalesay` image.
43
+
The following one takes in input the "message" parameter specified into the API call body, passed through the `WorkflowEventBinding` parameters section, and finally resolved here as the message of the `main` template.
0 commit comments