Skip to content

Commit

Permalink
Run make regenerate-test-data
Browse files Browse the repository at this point in the history
* Fix two tests that had removed service_account_name from the spec

Signed-off-by: Elliot Gunton <elliotgunton@gmail.com>
  • Loading branch information
elliotgunton committed Sep 16, 2024
1 parent 0d01d43 commit a0f4566
Show file tree
Hide file tree
Showing 115 changed files with 185 additions and 244 deletions.
4 changes: 2 additions & 2 deletions docs/examples/workflows/artifacts/artifact.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ task, consumer, takes this artifact, places it at its own `/file` path, and prin
script:
command:
- python
image: python:3.8
image: python:3.9
source: |-
import os
import sys
Expand All @@ -79,7 +79,7 @@ task, consumer, takes this artifact, places it at its own `/file` path, and prin
script:
command:
- python
image: python:3.8
image: python:3.9
source: |-
import os
import sys
Expand Down
6 changes: 3 additions & 3 deletions docs/examples/workflows/artifacts/artifact_with_fanout.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
script:
command:
- python
image: python:3.8
image: python:3.9
source: |-
import os
import sys
Expand All @@ -102,7 +102,7 @@
script:
command:
- python
image: python:3.8
image: python:3.9
source: |-
import os
import sys
Expand All @@ -121,7 +121,7 @@
script:
command:
- python
image: python:3.8
image: python:3.9
source: |-
import os
import sys
Expand Down
6 changes: 3 additions & 3 deletions docs/examples/workflows/dags/any_success_all_fail.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
script:
command:
- python
image: python:3.8
image: python:3.9
source: |-
import os
import sys
Expand All @@ -103,7 +103,7 @@
script:
command:
- python
image: python:3.8
image: python:3.9
source: |-
import os
import sys
Expand All @@ -120,7 +120,7 @@
script:
command:
- python
image: python:3.8
image: python:3.9
source: |-
import os
import sys
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/workflows/dags/callable_dag.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
script:
command:
- python
image: python:3.8
image: python:3.9
source: |-
import os
import sys
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
- examples.workflows.dags.callable_dag_with_param_get:hello_with_output
command:
- python
image: python:3.8
image: python:3.9
source: '{{inputs.parameters}}'
- dag:
tasks:
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/workflows/dags/complex_deps.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
script:
command:
- python
image: python:3.8
image: python:3.9
source: |-
import os
import sys
Expand Down
6 changes: 3 additions & 3 deletions docs/examples/workflows/dags/conditional.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ This example showcases conditional execution on success, failure, and error
script:
command:
- python
image: python:3.8
image: python:3.9
source: |-
import os
import sys
Expand All @@ -80,7 +80,7 @@ This example showcases conditional execution on success, failure, and error
script:
command:
- python
image: python:3.8
image: python:3.9
source: |-
import os
import sys
Expand All @@ -90,7 +90,7 @@ This example showcases conditional execution on success, failure, and error
script:
command:
- python
image: python:3.8
image: python:3.9
source: |-
import os
import sys
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
script:
command:
- python
image: python:3.8
image: python:3.9
source: |-
import os
import sys
Expand All @@ -74,7 +74,7 @@
script:
command:
- python
image: python:3.8
image: python:3.9
source: |-
import os
import sys
Expand All @@ -84,7 +84,7 @@
script:
command:
- python
image: python:3.8
image: python:3.9
source: |-
import os
import sys
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
script:
command:
- python
image: python:3.8
image: python:3.9
source: |-
import os
import sys
Expand All @@ -81,7 +81,7 @@
script:
command:
- python
image: python:3.8
image: python:3.9
source: |-
import os
import sys
Expand Down
4 changes: 2 additions & 2 deletions docs/examples/workflows/dags/dag_with_script_param_passing.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
script:
command:
- python
image: python:3.8
image: python:3.9
source: |-
import os
import sys
Expand All @@ -67,7 +67,7 @@
script:
command:
- python
image: python:3.8
image: python:3.9
source: |-
import os
import sys
Expand Down
4 changes: 2 additions & 2 deletions docs/examples/workflows/dags/on_exit.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
script:
command:
- python
image: python:3.8
image: python:3.9
source: |-
import os
import sys
Expand Down Expand Up @@ -74,7 +74,7 @@
script:
command:
- python
image: python:3.8
image: python:3.9
source: |-
import os
import sys
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
value: /tmp/hera-outputs
- name: hera__script_pydantic_io
value: ''
image: python:3.8
image: python:3.9
source: '{{inputs.parameters}}'
- dag:
tasks:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
value: /tmp/hera-outputs
- name: hera__script_pydantic_io
value: ''
image: python:3.8
image: python:3.9
source: '{{inputs.parameters}}'
- inputs:
parameters:
Expand All @@ -119,7 +119,7 @@
value: /tmp/hera-outputs
- name: hera__script_pydantic_io
value: ''
image: python:3.8
image: python:3.9
source: '{{inputs.parameters}}'
- dag:
tasks:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
value: /tmp/hera-outputs
- name: hera__script_pydantic_io
value: ''
image: python:3.8
image: python:3.9
source: '{{inputs.parameters}}'
- inputs:
parameters:
Expand All @@ -152,7 +152,7 @@
value: /tmp/hera-outputs
- name: hera__script_pydantic_io
value: ''
image: python:3.8
image: python:3.9
source: '{{inputs.parameters}}'
- dag:
tasks:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
value: /tmp/hera-outputs
- name: hera__script_pydantic_io
value: ''
image: python:3.8
image: python:3.9
source: '{{inputs.parameters}}'
- inputs:
parameters:
Expand All @@ -89,7 +89,7 @@
value: /tmp/hera-outputs
- name: hera__script_pydantic_io
value: ''
image: python:3.8
image: python:3.9
source: '{{inputs.parameters}}'
```

Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
value: /tmp/hera-outputs
- name: hera__script_pydantic_io
value: ''
image: python:3.8
image: python:3.9
source: '{{inputs.parameters}}'
- inputs:
parameters:
Expand All @@ -124,7 +124,7 @@
value: /tmp/hera-outputs
- name: hera__script_pydantic_io
value: ''
image: python:3.8
image: python:3.9
source: '{{inputs.parameters}}'
- inputs:
parameters:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,7 @@ This example will reuse the outputs volume across script steps.
=== "Hera"

```python linenums="1"
import sys

if sys.version_info >= (3, 9):
from typing import Annotated
else:
from typing_extensions import Annotated
from typing import Annotated

from hera.shared import global_config
from hera.workflows import (
Expand Down Expand Up @@ -148,7 +143,7 @@ This example will reuse the outputs volume across script steps.
value: ''
- name: hera__outputs_directory
value: /mnt/empty/dir
image: python:3.8
image: python:3.9
source: '{{inputs.parameters}}'
volumeMounts:
- mountPath: /mnt/empty/dir
Expand All @@ -172,7 +167,7 @@ This example will reuse the outputs volume across script steps.
env:
- name: hera__script_annotations
value: ''
image: python:3.8
image: python:3.9
source: '{{inputs.parameters}}'
- inputs:
parameters:
Expand All @@ -195,7 +190,7 @@ This example will reuse the outputs volume across script steps.
value: ''
- name: hera__outputs_directory
value: /mnt/here
image: python:3.8
image: python:3.9
source: '{{inputs.parameters}}'
volumeMounts:
- mountPath: /mnt/here
Expand All @@ -216,7 +211,7 @@ This example will reuse the outputs volume across script steps.
env:
- name: hera__script_annotations
value: ''
image: python:3.8
image: python:3.9
source: '{{inputs.parameters}}'
volumeMounts:
- mountPath: /mnt/here
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,8 @@

```python linenums="1"
import json
import sys
from pathlib import Path
from typing import Dict

if sys.version_info >= (3, 9):
from typing import Annotated
else:
from typing_extensions import Annotated
from typing import Annotated, Dict

from hera.shared import global_config
from hera.workflows import Artifact, ArtifactLoader, Parameter, Steps, Workflow, script
Expand Down Expand Up @@ -105,7 +99,7 @@
value: ''
- name: hera__outputs_directory
value: /tmp/hera-outputs
image: python:3.8
image: python:3.9
source: '{{inputs.parameters}}'
- inputs:
artifacts:
Expand All @@ -127,7 +121,7 @@
env:
- name: hera__script_annotations
value: ''
image: python:3.8
image: python:3.9
source: '{{inputs.parameters}}'
```

Loading

0 comments on commit a0f4566

Please sign in to comment.