Resolver Type
This resolver responds to typebundles.
Parameters
The bundle URL pointing at the OCI image to fetch.Example:
gcr.io/tekton-releases/catalog/upstream/golang-build:0.1Example with digest: docker.io/myuser/task@sha256:053a6cb9f3711d4527dd0d37ac610e8727ec0288a898d5dfbd79b25bcaa29828The name of the resource to pull out of the bundle.Example:
golang-build, hello-worldThe resource kind to pull out of the bundle.Options:
task, pipelineThe name of the secret to use when constructing registry credentials.Example:
registry-credentialsControls caching behavior for the resolved resource.Options:
always, never, autoRequirements
- A cluster running Tekton Pipeline v0.41.0 or later
- Built-in remote resolvers installed
- The
enable-bundles-resolverfeature flag set totruein theresolvers-feature-flagsConfigMap - Beta features enabled
Configuration
The Bundle Resolver uses thebundleresolver-config ConfigMap in the tekton-pipelines-resolvers namespace.
Configuration Options
backoff-duration
Initial duration for a backoff (e.g.,
500ms, 2s)backoff-factor
Factor by which sleep duration increases (e.g.,
2.5, 4.0)backoff-jitter
Random sleep addition between 0 and duration × jitter (e.g.,
0.1, 0.5)backoff-steps
Number of backoff attempts (e.g.,
3, 7)backoff-cap
Maximum backoff duration (e.g.,
10s, 20s)default-kind
Default layer kind in bundle image (e.g.,
task, pipeline)Caching Options
The bundle resolver supports caching to improve performance:| Cache Value | Description |
|---|---|
always | Always cache resolved resources |
never | Never cache resolved resources |
auto | Cache only bundles pulled by digest (default) |
bundleresolver-config ConfigMap:
Global Cache Configuration
Configure cache size and TTL using theresolver-cache-config ConfigMap:
Usage Examples
Task Resolution by Digest
Task Resolution by Tag
Task Resolution with Private Registry
Pipeline Resolution
Task Resolution with Always Cache
Task Resolution with Never Cache
Creating Registry Credentials
For private registries, create a secret with registry credentials:ResolutionRequest Status
TheResolutionRequest.Status.RefSource field captures source metadata:
uri
Image repository URI without tag or digest
digest
Map of algorithm to hex-encoded image digest
entryPoint
Resource name in the OCI bundle
Best Practices
Use Digests
Reference bundles by digest for immutable, reproducible builds
Enable Caching
Use
cache: auto or cache: always for frequently used bundlesSecure Credentials
Store registry credentials in Kubernetes secrets
Version Bundles
Tag bundle images with semantic versions
When using
cache: auto (default), only bundles pulled by digest are cached. This ensures cached content is immutable.