1
0
Fork 0
mirror of https://github.com/imjasonh/krust synced 2026-07-08 06:45:32 +00:00
Commit graph

6 commits

Author SHA1 Message Date
Jason Hall
fc715db48e
Revert "feat: add configurable multi-part uploads to oci-distribution" 2025-06-08 16:17:43 -04:00
Jason Hall
9aeedb133b
feat: add configurable multi-part uploads to oci-distribution
- Added `use_chunked_uploads` field to ClientConfig (default: true)
- Modified push_blob to respect the chunked upload configuration
- Configured krust to disable chunked uploads for better registry compatibility
- Added comprehensive tests for the new configuration option

This allows callers to control whether chunked/multi-part uploads are used,
which improves compatibility with registries that may not support them well.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-08 15:01:38 -04:00
Jason Hall
672ada3dd2
feat: Add RegistryAuth::from_default() convenience methods
- Add from_default() and from_default_str() methods to RegistryAuth
- These methods automatically resolve auth from Docker config and credential helpers
- Update example to demonstrate both explicit and auto auth approaches
- Simplify krust's auth wrapper to use the new convenience method
- Fix test environment variable pollution

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-08 10:49:28 -04:00
Jason Hall
a6ae83c3b2
feat: Add credential helper support to oci-distribution
- Move Docker config parsing and credential helper execution from krust
- Add automatic auth resolution methods (*_auto) to the client
- Support standard Docker config locations and environment variables
- Add comprehensive tests and examples
- Simplify krust to use the new credential helper functionality
2025-06-08 10:30:41 -04:00
Jason Hall
cf644c9570
fix: Add vendor/oci-distribution files directly instead of as submodule
The previous commit added vendor/oci-distribution as a git submodule pointer,
which caused CI to fail because the files weren't actually present.
This commit removes the submodule and adds the actual files directly.
2025-06-08 10:00:38 -04:00
Jason Hall
7827c25d9b
feat: Fork oci-distribution and add enhanced features
- Fork oci-distribution v0.11.0 into vendor/oci-distribution
- Add get_image_platforms() method for proper platform detection
- Support fetching config blobs for single-platform images
- Add OAuth2/Bearer token authentication support
- Add push_manifest_and_get_digest() for reliable digest extraction
- Update krust to use the forked version with enhanced features
2025-06-08 09:49:41 -04:00