diff --git a/README.md b/README.md index 6754361af87..e7ec0a3d730 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ Tekton Pipelines are **Typed**: - Jump in with [the tutorial!](docs/tutorial.md) - Take a look at our [roadmap](roadmap.md) -*Note that starting from the 0.11 release of Tetkon, you need to have +*Note that starting from the 0.11 release of Tekton, you need to have a cluster with **Kubernetes version 1.15 or later***. ### Read the docs diff --git a/docs/workspaces.md b/docs/workspaces.md index 54b24ee31fa..422f422650b 100644 --- a/docs/workspaces.md +++ b/docs/workspaces.md @@ -142,6 +142,20 @@ The entry must also include one `VolumeSource`. See [Using `VolumeSources` with The following examples illustrate how to specify `Workspaces` in your `TaskRun` definition. For a more in-depth example, see [`Workspaces` in a `TaskRun`](../examples/v1beta1/taskruns/workspace.yaml). +In the example below, a template is provided for how a `PersistentVolumeClaim` should be created for a Task's workspace named `myworkspace`. When using `volumeClaimTemplate` a new `PersistentVolumeClaim` is created for each `TaskRun` and it allows the user to specify e.g. size and StorageClass for the volume. + +```yaml +workspaces: +- name: myworkspace + volumeClaimTemplate: + spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 1Gi +``` + In the example below, an existing `PersistentVolumeClaim` called `mypvc` is used for a Task's `workspace` called `myworkspace`. It exposes only the subdirectory `my-subdir` from that `PersistentVolumeClaim`: