Skip to content

Commit 0cf57e6

Browse files
committed
feat(example): create resource dependencies #15002
Some of our examples depends on other resources such as ClusterWorkflowTemplate, WorkflowTemplate, ConfigMap and so on. Those tests were previous to this commit disabled because we were not resolving such dependencies but right now we visit the example dir and subdirs twice, the first time we apply all those resources, the second time to run the actual workflows Signed-off-by: Gianluca Arbezzano <[email protected]>
1 parent 0288014 commit 0cf57e6

16 files changed

+93
-52
lines changed

docs/fields.md

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3987,14 +3987,6 @@ MetricLabel is a single label for a prometheus metric
39873987

39883988
- [`ci.yaml`](https://github.com/argoproj/argo-workflows/blob/main/examples/ci.yaml)
39893989

3990-
- [`cluster-wftmpl-dag.yaml`](https://github.com/argoproj/argo-workflows/blob/main/examples/cluster-workflow-template/cluster-wftmpl-dag.yaml)
3991-
3992-
- [`mixed-cluster-namespaced-wftmpl-steps.yaml`](https://github.com/argoproj/argo-workflows/blob/main/examples/cluster-workflow-template/mixed-cluster-namespaced-wftmpl-steps.yaml)
3993-
3994-
- [`workflow-template-ref-with-entrypoint-arg-passing.yaml`](https://github.com/argoproj/argo-workflows/blob/main/examples/cluster-workflow-template/workflow-template-ref-with-entrypoint-arg-passing.yaml)
3995-
3996-
- [`workflow-template-ref.yaml`](https://github.com/argoproj/argo-workflows/blob/main/examples/cluster-workflow-template/workflow-template-ref.yaml)
3997-
39983990
- [`colored-logs.yaml`](https://github.com/argoproj/argo-workflows/blob/main/examples/colored-logs.yaml)
39993991

40003992
- [`continue-on-fail.yaml`](https://github.com/argoproj/argo-workflows/blob/main/examples/continue-on-fail.yaml)
@@ -4149,25 +4141,11 @@ MetricLabel is a single label for a prometheus metric
41494141

41504142
- [`title-and-description-with-markdown.yaml`](https://github.com/argoproj/argo-workflows/blob/main/examples/title-and-description-with-markdown.yaml)
41514143

4152-
- [`volumes-existing.yaml`](https://github.com/argoproj/argo-workflows/blob/main/examples/volumes-existing.yaml)
4153-
41544144
- [`webhdfs-input-output-artifacts.yaml`](https://github.com/argoproj/argo-workflows/blob/main/examples/webhdfs-input-output-artifacts.yaml)
41554145

41564146
- [`work-avoidance.yaml`](https://github.com/argoproj/argo-workflows/blob/main/examples/work-avoidance.yaml)
41574147

41584148
- [`workflow-of-workflows.yaml`](https://github.com/argoproj/argo-workflows/blob/main/examples/workflow-of-workflows.yaml)
4159-
4160-
- [`dag.yaml`](https://github.com/argoproj/argo-workflows/blob/main/examples/workflow-template/dag.yaml)
4161-
4162-
- [`hello-world.yaml`](https://github.com/argoproj/argo-workflows/blob/main/examples/workflow-template/hello-world.yaml)
4163-
4164-
- [`retry-with-steps.yaml`](https://github.com/argoproj/argo-workflows/blob/main/examples/workflow-template/retry-with-steps.yaml)
4165-
4166-
- [`steps.yaml`](https://github.com/argoproj/argo-workflows/blob/main/examples/workflow-template/steps.yaml)
4167-
4168-
- [`workflow-template-ref-with-entrypoint-arg-passing.yaml`](https://github.com/argoproj/argo-workflows/blob/main/examples/workflow-template/workflow-template-ref-with-entrypoint-arg-passing.yaml)
4169-
4170-
- [`workflow-template-ref.yaml`](https://github.com/argoproj/argo-workflows/blob/main/examples/workflow-template/workflow-template-ref.yaml)
41714149
</details>
41724150

41734151
### Fields

examples/cluster-workflow-template/cluster-wftmpl-dag.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ apiVersion: argoproj.io/v1alpha1
99
kind: Workflow
1010
metadata:
1111
generateName: workflow-template-dag-diamond-
12-
labels:
13-
workflows.argoproj.io/no-test: "environment"
1412
spec:
1513
entrypoint: diamond
1614
templates:

examples/cluster-workflow-template/mixed-cluster-namespaced-wftmpl-steps.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ apiVersion: argoproj.io/v1alpha1
22
kind: Workflow
33
metadata:
44
generateName: workflow-template-steps-
5-
labels:
6-
workflows.argoproj.io/no-test: "environment"
75
spec:
86
entrypoint: hello-hello-hello
97
templates:

examples/cluster-workflow-template/workflow-template-ref-with-entrypoint-arg-passing.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ apiVersion: argoproj.io/v1alpha1
22
kind: Workflow
33
metadata:
44
generateName: cluster-workflow-template-hello-world-
5-
labels:
6-
workflows.argoproj.io/no-test: "broken"
75
spec:
86
entrypoint: print-message
97
arguments:

examples/cluster-workflow-template/workflow-template-ref.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ apiVersion: argoproj.io/v1alpha1
22
kind: Workflow
33
metadata:
44
generateName: cluster-workflow-template-hello-world-
5-
labels:
6-
workflows.argoproj.io/no-test: "environment"
75
spec:
86
workflowTemplateRef:
97
name: cluster-workflow-template-submittable

examples/custom-metrics.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ apiVersion: argoproj.io/v1alpha1
55
kind: Workflow
66
metadata:
77
generateName: hello-world-
8+
labels:
9+
workflows.argoproj.io/no-test: "flaky"
810
spec:
911
entrypoint: steps
1012
metrics:

examples/http-success-condition.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ spec:
1313
- - name: http-status-is-201-succeeds
1414
template: http-status-is-201
1515
arguments:
16-
parameters: [{name: url, value: "http://httpbin:9100/status/201"}] # Returns status code 201
16+
parameters: [{name: url, value: "https://httpbin.org/status/201"}] # Returns status code 201
1717
- name: http-body-contains-google-succeeds
1818
template: http-body-contains-google
1919
arguments:

examples/timeouts-step.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ kind: Workflow
77
metadata:
88
generateName: timeouts-step-
99
labels:
10-
workflows.argoproj.io/no-test: "broken"
10+
workflows.argoproj.io/no-test: "expected-failure"
1111
annotations:
1212
workflows.argoproj.io/no-test-reason: |
1313
It looks like the container does not terminate in a clean way

examples/volumes-existing.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ apiVersion: argoproj.io/v1alpha1
1111
kind: Workflow
1212
metadata:
1313
generateName: volumes-existing-
14-
labels:
15-
workflows.argoproj.io/no-test: "environment"
1614
spec:
1715
entrypoint: volumes-existing-example
1816
volumes:

examples/workflow-template/dag.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ apiVersion: argoproj.io/v1alpha1
99
kind: Workflow
1010
metadata:
1111
generateName: workflow-template-dag-diamond-
12-
labels:
13-
workflows.argoproj.io/no-test: "environment"
1412
spec:
1513
entrypoint: diamond
1614
templates:

0 commit comments

Comments
 (0)