forked from argoproj/argo-workflows
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wft.yaml
56 lines (54 loc) · 1.64 KB
/
wft.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Base workflow referenced by other workflow templates
# The goal is to create several different templates that can be used to conveniently instantiate
# this workflow with different default values.
apiVersion: argoproj.io/v1alpha1
kind: WorkflowTemplate
metadata:
name: base-template
namespace: argo
spec:
entrypoint: base-main
arguments:
parameters:
- name: base1
value: NO_DEFAULT # needed to make this show up in the UI, is there a better way?
- name: base2
value: NO_DEFAULT
- name: base3
value: NO_DEFAULT
templates:
- name: base-main
inputs:
parameters:
- name: base1
- name: base2
- name: base3
container:
image: "docker/whalesay"
command: [cowsay]
args:
- "{{inputs.parameters.base1}}"
- "{{inputs.parameters.base2}}"
- "{{inputs.parameters.base3}}"
---
# The field reference suggests that WorkflowTemplateSpec has a workflowTemplateRef field on it, and this workflow template is
# able to be created, but when you submit via the UI or CLI it fails to find the entrypoint.
apiVersion: argoproj.io/v1alpha1
kind: WorkflowTemplate
metadata:
name: child-template-broken
namespace: argo
spec:
entrypoint: base-main
arguments:
parameters:
# From UI or CLI, user can just set base3, and can override others if they wish
- name: base1
value: default_value_1
- name: base2
value: default_value_2
- name: base3
value: NO_DEFAULT
workflowTemplateRef:
# Internal Server Error: template reference child-template.base-main not found
name: base-template # Base workflow referenced by other workflow templates