Skip to content

Commit 889f911

Browse files
committed
Fix argo lint errors in misc folder
Signed-off-by: Ukjae Jeong <[email protected]>
1 parent bc12280 commit 889f911

File tree

15 files changed

+24
-8
lines changed

15 files changed

+24
-8
lines changed

docs/examples/workflows/misc/data.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
Workflow,
1717
)
1818

19-
with Workflow(generate_name="data-") as w:
19+
with Workflow(generate_name="data-", entrypoint="list-log-files") as w:
2020
Data(
2121
name="list-log-files",
2222
source=S3Artifact(name="test-bucket", bucket="my-bucket"),
@@ -33,6 +33,7 @@
3333
metadata:
3434
generateName: data-
3535
spec:
36+
entrypoint: list-log-files
3637
templates:
3738
- data:
3839
source:

docs/examples/workflows/misc/env.md

+2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
with Workflow(generate_name="secret-env-from-", entrypoint="whalesay") as w:
2323
whalesay = Container(
24+
name="whalesay",
2425
image="docker/whalesay:latest",
2526
command=["cowsay"],
2627
env_from=[
@@ -76,5 +77,6 @@
7677
optional: false
7778
prefix: abc
7879
image: docker/whalesay:latest
80+
name: whalesay
7981
```
8082

docs/examples/workflows/misc/env_from.md

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
with Workflow(generate_name="secret-env-from-", entrypoint="whalesay") as w:
1414
whalesay = Container(
15+
name="whalesay",
1516
image="docker/whalesay:latest",
1617
command=["cowsay"],
1718
env_from=[
@@ -44,5 +45,6 @@
4445
optional: false
4546
prefix: abc
4647
image: docker/whalesay:latest
48+
name: whalesay
4749
```
4850

docs/examples/workflows/misc/http.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
from hera.expr import g
1212
from hera.workflows import HTTP, Parameter, Workflow
1313

14-
with Workflow(generate_name="http-") as w:
14+
with Workflow(generate_name="http-", entrypoint="http") as w:
1515
HTTP(
1616
name="http",
17-
inputs=[Parameter(name="url")],
17+
inputs=[Parameter(name="url", value="https://example.com")],
1818
timeout_seconds=20,
1919
url=f"{g.inputs.parameters.url:$}",
2020
method="GET",
@@ -32,6 +32,7 @@
3232
metadata:
3333
generateName: http-
3434
spec:
35+
entrypoint: http
3536
templates:
3637
- http:
3738
body: test body
@@ -45,6 +46,7 @@
4546
inputs:
4647
parameters:
4748
- name: url
49+
value: https://example.com
4850
name: http
4951
```
5052

docs/examples/workflows/misc/suspend.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
```python linenums="1"
1111
from hera.workflows import Parameter, Suspend, Workflow
1212

13-
with Workflow(generate_name="suspend-") as w:
13+
with Workflow(generate_name="suspend-", entrypoint="suspend-without-duration") as w:
1414
Suspend(name="suspend-without-duration")
1515
Suspend(name="suspend-with-duration", duration=30)
1616
Suspend(
@@ -31,6 +31,7 @@
3131
metadata:
3232
generateName: suspend-
3333
spec:
34+
entrypoint: suspend-without-duration
3435
templates:
3536
- name: suspend-without-duration
3637
suspend: {}

examples/workflows/misc/data.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
Workflow,
77
)
88

9-
with Workflow(generate_name="data-") as w:
9+
with Workflow(generate_name="data-", entrypoint="list-log-files") as w:
1010
Data(
1111
name="list-log-files",
1212
source=S3Artifact(name="test-bucket", bucket="my-bucket"),

examples/workflows/misc/data.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ kind: Workflow
33
metadata:
44
generateName: data-
55
spec:
6+
entrypoint: list-log-files
67
templates:
78
- data:
89
source:

examples/workflows/misc/env-from.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@ spec:
1818
optional: false
1919
prefix: abc
2020
image: docker/whalesay:latest
21+
name: whalesay

examples/workflows/misc/env.py

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
with Workflow(generate_name="secret-env-from-", entrypoint="whalesay") as w:
1313
whalesay = Container(
14+
name="whalesay",
1415
image="docker/whalesay:latest",
1516
command=["cowsay"],
1617
env_from=[

examples/workflows/misc/env.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,4 @@ spec:
3535
optional: false
3636
prefix: abc
3737
image: docker/whalesay:latest
38+
name: whalesay

examples/workflows/misc/env_from.py

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
with Workflow(generate_name="secret-env-from-", entrypoint="whalesay") as w:
44
whalesay = Container(
5+
name="whalesay",
56
image="docker/whalesay:latest",
67
command=["cowsay"],
78
env_from=[

examples/workflows/misc/http.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
from hera.expr import g
22
from hera.workflows import HTTP, Parameter, Workflow
33

4-
with Workflow(generate_name="http-") as w:
4+
with Workflow(generate_name="http-", entrypoint="http") as w:
55
HTTP(
66
name="http",
7-
inputs=[Parameter(name="url")],
7+
inputs=[Parameter(name="url", value="https://example.com")],
88
timeout_seconds=20,
99
url=f"{g.inputs.parameters.url:$}",
1010
method="GET",

examples/workflows/misc/http.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ kind: Workflow
33
metadata:
44
generateName: http-
55
spec:
6+
entrypoint: http
67
templates:
78
- http:
89
body: test body
@@ -16,4 +17,5 @@ spec:
1617
inputs:
1718
parameters:
1819
- name: url
20+
value: https://example.com
1921
name: http

examples/workflows/misc/suspend.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from hera.workflows import Parameter, Suspend, Workflow
22

3-
with Workflow(generate_name="suspend-") as w:
3+
with Workflow(generate_name="suspend-", entrypoint="suspend-without-duration") as w:
44
Suspend(name="suspend-without-duration")
55
Suspend(name="suspend-with-duration", duration=30)
66
Suspend(

examples/workflows/misc/suspend.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ kind: Workflow
33
metadata:
44
generateName: suspend-
55
spec:
6+
entrypoint: suspend-without-duration
67
templates:
78
- name: suspend-without-duration
89
suspend: {}

0 commit comments

Comments
 (0)