Discover Tool Image
This guide shows you how to discover tool images that help you run your Tekton Tasks and Pipelines. If you don't find the image you need, you can always build your own image and use it to run your Tasks and Pipelines.
TOC
TL;DR
- Replace
<tekton-namespace>with your Tekton namespace before running. Such astekton-pipelines. - Replace
<image-name>with your target image name. Such ashelm.
Run the following command to get the image name:
- The second line selects array index 0
(.items[0]). If there are multiple matching ConfigMaps and index 0 isn't the one you want, change the index (e.g.,.items[1],.items[2], …) or follow the step-by-step flow below to list and choose. - If
kube-public/global-infodoesn't exist (or lacks registryAddress), replaceREGwith your own registry, e.g.:REG="registry.example.com".
Prerequisites
- kubectl installed and configured to access the cluster.
- Permissions to read ConfigMaps.
Step-by-Step Instructions
Step 1: Get the registry
Try to read registryAddress from kube-public/global-info.
If your cluster doesn't provide kube-public/global-info, you must replace REG with your registry (for example, harbor.example.com).
Step 2: List all candidate tool images in namespace
Replace <tekton-namespace> with your Tekton namespace before running. Such as tekton-pipelines.
This prints lines like:
If you only want a specific type image, you can use the following command.
Replace <image-name> with your target image name. Such as helm.
This prints lines like:
Select one of the images, and set IMG to the image name.
Step 3: Print the final image name
This prints like:
Troubleshooting
- Empty output or errors:
- Ensure you can read ConfigMaps in namespaces.
- Confirm
kube-public/global-infoexists and has aregistryAddresskey (or setREGmanually as shown above).