Merged
Conversation
Implements Tekton Bundles resolver to fetch tasks from OCI registries. This provides production-ready versioned task distribution using container registries. Features: - Pull tasks from any OCI-compliant registry (Docker Hub, GHCR, GCR, ECR, ACR) - Support for both tags and SHA256 digests (immutable references) - Authentication via ~/.docker/config.json (standard Docker auth) - Content-addressable caching - Case-insensitive kind matching (Task vs task) Implementation: - Uses github.com/google/go-containerregistry library - Extracts Tekton YAML from OCI image layers - Supports name parameter to extract specific resource from bundle - Default kind: task (also supports pipeline) Bundle reference formats: - registry/image:tag (e.g., gcr.io/tekton-releases/catalog/upstream/git-clone:0.9) - registry/image@digest (e.g., gcr.io/.../git-clone@sha256:abc123...) Test coverage: - Unit tests with mock OCI registry - Caching behavior tests - Error handling tests (missing params, invalid format, nonexistent registry) - All 6 bundles tests passing Documentation: - Created examples/resolvers/bundles-resolver-pipelinerun.yaml - Updated examples/resolvers/README.md with comprehensive bundles docs - Updated main README.md with bundles resolver feature Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements Tekton Bundles resolver to fetch tasks from OCI registries. This completes full Tekton resolver parity and provides production-ready versioned task distribution.
Features
Bundles Resolver
~/.docker/config.json(standard Docker credentials)Implementation
github.com/google/go-containerregistrylibrary (official Google library)task(also supportspipeline)Bundle Reference Formats
Changes
pkg/parser/bundles_resolver_test.go- Comprehensive test suite (6 tests)pkg/parser/resolver.go- AddedresolveBundles()implementationexamples/resolvers/bundles-resolver-pipelinerun.yaml- Example usageexamples/resolvers/README.md- Bundles documentation with auth guideREADME.md- Added bundles resolver to features listgithub.com/google/go-containerregistry@v0.20.7Test Coverage
Authentication Examples
Works with standard Docker authentication:
Resolver Completion Status
With this PR, all four Tekton resolvers are now implemented:
🤖 Generated with Claude Code