Skip to content
Merged
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
8 changes: 7 additions & 1 deletion definitions.go
Original file line number Diff line number Diff line change
Expand Up @@ -1010,7 +1010,7 @@ var runTaskDefinition = &jsonschema.Schema{
Title: "Container",
Description: "The configuration of the container to run.",
UnevaluatedProperties: falseSchema(),
Required: []string{"image"},
Required: []string{"image", "pullPolicy"},
Properties: map[string]*jsonschema.Schema{
propArguments: {
Type: typeArray,
Expand Down Expand Up @@ -1043,6 +1043,12 @@ var runTaskDefinition = &jsonschema.Schema{
Title: "ContainerName",
Description: "A runtime expression, if any, used to give specific name to the container.",
},
"pullPolicy": {
Type: typeString,
Title: "PullPolicy",
Description: "Pull policy for the container image",
Enum: []any{"always", "never", "ifNotPresent"},
},
"volumes": {
Type: typeObject,
Title: "ContainerVolumes",
Expand Down
13 changes: 12 additions & 1 deletion schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1182,6 +1182,16 @@
"title": "ContainerName",
"description": "A runtime expression, if any, used to give specific name to the container."
},
"pullPolicy": {
"type": "string",
"title": "PullPolicy",
"description": "Pull policy for the container image",
"enum": [
"always",
"never",
"ifNotPresent"
]
},
"volumes": {
"type": "object",
"title": "ContainerVolumes",
Expand All @@ -1191,7 +1201,8 @@
"title": "Container",
"description": "The configuration of the container to run.",
"required": [
"image"
"image",
"pullPolicy"
],
"unevaluatedProperties": false
}
Expand Down
9 changes: 9 additions & 0 deletions schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -772,12 +772,21 @@ $defs:
name to the container.
title: ContainerName
type: string
pullPolicy:
description: Pull policy for the container image
enum:
- always
- never
- ifNotPresent
title: PullPolicy
type: string
volumes:
description: The container's volume mappings, if any.
title: ContainerVolumes
type: object
required:
- image
- pullPolicy
title: Container
type: object
unevaluatedProperties: false
Expand Down
Loading