From 5cb77b9424d740c45cc2b9637c4adc99d1b4bc1f Mon Sep 17 00:00:00 2001 From: adm Date: Thu, 23 Mar 2023 13:49:06 +0100 Subject: [PATCH] doc: added a note on pulling task image from private repo prior to this, docs were not clear on how to use a private image for a task - issue #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 --- docs/tasks.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/tasks.md b/docs/tasks.md index 16f5a732a0b..872b6c6c0a1 100644 --- a/docs/tasks.md +++ b/docs/tasks.md @@ -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