forked from argoproj/argo-workflows
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhttp-hello-world.yaml
34 lines (32 loc) · 1.04 KB
/
http-hello-world.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
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: http-template-
labels:
workflows.argoproj.io/test: "true"
annotations:
workflows.argoproj.io/description: |
Http template will demostrate http template functionality
workflows.argoproj.io/version: '>= 3.2.0'
spec:
entrypoint: main
templates:
- name: main
steps:
- - name: good
template: http
arguments:
parameters: [{name: url, value: "https://raw.githubusercontent.com/argoproj/argo-workflows/4e450e250168e6b4d51a126b784e90b11a0162bc/pkg/apis/workflow/v1alpha1/generated.swagger.json"}]
- name: bad
template: http
continueOn:
failed: true
arguments:
parameters: [{name: url, value: "http://openlibrary.org/people/george08/nofound.json"}]
- name: http
inputs:
parameters:
- name: url
http:
# url: http://dummy.restapiexample.com/api/v1/employees
url: "{{inputs.parameters.url}}"