Skip to content

Commit

Permalink
Remove example with parallel tasks with a fan-in task
Browse files Browse the repository at this point in the history
The example with two parallel tasks using PVC based workspaces and a third fan-in task,
may be problematic in some environments. If the cluster is _regional_ but the PVCs are
_zonal_ the third task may never be able to mount both PVCs (it should have used a regional
PVC storageClass instead).

Since this depends so much of the environment e.g. type of cluster and capabilities of the
storage, I propose we remove this example. The intent was to document _access modes_ and that
is possible without the example.
  • Loading branch information
jlpettersson authored and tekton-robot committed May 5, 2020
1 parent 24b8ce7 commit a7fb389
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 87 deletions.
3 changes: 1 addition & 2 deletions docs/workspaces.md
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,7 @@ Using parallel `Tasks` in a `Pipeline` will work with `PersistentVolumeClaims` c
[access mode](https://kubernetes.io/docs/concepts/storage/persistent-volumes/#access-modes)
`ReadWriteMany` or `ReadOnlyMany` but you must ensure that those are available for your storage class.
When using `PersistentVolumeClaims` with access mode `ReadWriteOnce` for parallel `Tasks`, you can configure a
workspace with it's own `PersistentVolumeClaim` for each parallel `Task`. See a full example of a
[Pipeline with parallel tasks using PersistentVolumeClaims](../examples/v1beta1/pipelineruns/pipelinerun-with-parallel-tasks-using-pvc.yaml).
workspace with it's own `PersistentVolumeClaim` for each parallel `Task`.

Use the `runAfter` field in your `Pipeline` definition to define when a `Task` should be executed. For more
information, see the [`runAfter` documentation](pipelines.md#runAfter).
Expand Down

This file was deleted.

0 comments on commit a7fb389

Please sign in to comment.