Skip to content

Commit

Permalink
Update docs with timeout field
Browse files Browse the repository at this point in the history
- timeout now on taskRun and PipelineRun
  • Loading branch information
nader-ziada authored and knative-prow-robot committed Feb 3, 2019
1 parent 9585e0d commit 7b5938b
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 9 deletions.
7 changes: 6 additions & 1 deletion docs/pipelineruns.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,12 @@ following fields:
- [`serviceAccount`](#service-account) - Specifies a `ServiceAccount`
resource object that enables your build to run with the defined
authentication information.

- `timeout` - Specifies timeout after which the `PipelineRun` will fail.
- [`nodeSelector`] - a selector which must be true for the pod to fit on a node.
The selector which must match a node's labels for the pod to be scheduled on that node.
More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
- [`affinity`] - the pod's scheduling constraints. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#node-affinity-beta-feature

[kubernetes-overview]:
https://kubernetes.io/docs/concepts/overview/working-with-objects/kubernetes-objects/#required-fields

Expand Down
1 change: 0 additions & 1 deletion docs/pipelines.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ following fields:
- Optional:
- [`resources`](#declared-resources) - Specifies which [`PipelineResources`](resources.md)
of which types the `Pipeline` will be using in its [Tasks](#pipeline-tasks)
- `timeout` - Specifies timeout after which the `Pipeline` will fail.

[kubernetes-overview]:
https://kubernetes.io/docs/concepts/overview/working-with-objects/kubernetes-objects/#required-fields
Expand Down
7 changes: 6 additions & 1 deletion docs/taskruns.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,12 @@ following fields:
- [`inputs`] - Specifies [input parameters](#input-parameters) and
[input resources](#providing-resources)
- [`outputs`] - Specifies [output resources](#providing-resources)

- `timeout` - Specifies timeout after which the `TaskRun` will fail.
- [`nodeSelector`] - a selector which must be true for the pod to fit on a node.
The selector which must match a node's labels for the pod to be scheduled on that node.
More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
- [`affinity`] - the pod's scheduling constraints. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#node-affinity-beta-feature

[kubernetes-overview]:
https://kubernetes.io/docs/concepts/overview/working-with-objects/kubernetes-objects/#required-fields

Expand Down
5 changes: 0 additions & 5 deletions docs/tasks.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,6 @@ following fields:
- [`outputs`](#outputs) - Specifies [`PipelineResources`](resources.md) needed by your `Task`
- [`volumes`](#volumes) - Specifies one or more volumes that you want to make
available to your build.
- `timeout` - Specifies timeout after which the `Task` will fail.
- [`nodeSelector`] - a selector which must be true for the pod to fit on a node.
The selector which must match a node's labels for the pod to be scheduled on that node.
More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
- [`affinity`] - the pod's scheduling constraints. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#node-affinity-beta-feature

[kubernetes-overview]:
https://kubernetes.io/docs/concepts/overview/working-with-objects/kubernetes-objects/#required-fields
Expand Down
2 changes: 1 addition & 1 deletion docs/using.md
Original file line number Diff line number Diff line change
Expand Up @@ -1009,7 +1009,7 @@ Below is an example on how to create a storage resource with service account.
secretKey: service_account.json
```

## Timing Out Pipelines and Tasks
## Timing Out PipelinesRun and TasksRuns

If you want to ensure that your `PipelineRun` or `TaskRun` will be stopped if it runs
past a certain duration, you can use the `Timeout` field on either `PipelineRun`
Expand Down

0 comments on commit 7b5938b

Please sign in to comment.