Skip to content

Commit

Permalink
doc: added a note on pulling task image from private repo
Browse files Browse the repository at this point in the history
Prior to this, docs were not clear on how to use a private image
for a task - issue tektoncd#3604

If a task uses an image from a private repo, then `imagePullSecrets`
must be provided at runtime via `podTemplate` - added note to the tasks docs
  • Loading branch information
adm committed Mar 26, 2023
1 parent 5deea1f commit 6502ea8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/tasks.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,9 @@ The following requirements apply to each container image referenced in a `steps`
though Tekton runs `Steps` sequentially.
For more detail, see [Compute Resources in Tekton](./compute-resources.md).

**Note:** If the image referenced in the `step` field is from a private registry, `TaskRuns` or `PipelineRuns` that consume the task
must provide the `imagePullSecrets` in a [podTemplate](./podtemplates.md).

Below is an example of setting the resource requests and limits for a step:

```yaml
Expand Down

0 comments on commit 6502ea8

Please sign in to comment.