Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions dsl-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -931,6 +931,7 @@ Enables the execution of external processes encapsulated within a containerized
| stdin | `string` | `no` | A runtime expression, if any, passed as standard input to the command or default container CMD|
| arguments | `string[]` | `no` | A list of the arguments, if any, passed as argv to the command or default container CMD |
| lifetime | [`containerLifetime`](#container-lifetime) | `no` | An object used to configure the container's lifetime. |
| pullPolicy | `string` | `no` | Policy that controls how the container's image should be pulled from the registry. Defaults to `ifNotPresent` |

###### Examples

Expand Down Expand Up @@ -958,6 +959,7 @@ do:
arguments:
- Foo
- Bar
pullPolicy: always
```

> [!NOTE]
Expand Down
11 changes: 11 additions & 0 deletions examples/run-container-with-pull-policy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
document:
dsl: '1.0.2'
namespace: test
name: run-container-with-pull-policy
version: '0.1.0'
do:
- runContainer:
run:
container:
image: hello-world
pullPolicy: always
5 changes: 5 additions & 0 deletions schema/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -823,6 +823,11 @@ $defs:
$ref: '#/$defs/containerLifetime'
title: ContainerLifetime
description: An object, if any, used to configure the container's lifetime
pullPolicy:
type: string
title: ContainerPullPolicy
description: Policy that controls how the container's image should be pulled from the registry. Defaults to `ifNotPresent`
enum: [ ifNotPresent, always, never ]
required: [ image ]
required: [ container ]
- title: RunScript
Expand Down