[deckhouse-cli] Add new cr command for registry operations#344
Open
Glitchy-Sheep wants to merge 14 commits intomainfrom
Open
[deckhouse-cli] Add new cr command for registry operations#344Glitchy-Sheep wants to merge 14 commits intomainfrom
Glitchy-Sheep wants to merge 14 commits intomainfrom
Conversation
- introduce domain types and error sentinels - add scope guard against path traversal - detect OCI whiteout markers Signed-off-by: Roman Berezkin <[email protected]>
- layer walker that resolves union mounts and whiteouts - streaming reader of layered image filesystem - file extractor with destination scope enforcement Signed-off-by: Roman Berezkin <[email protected]>
- cover whiteout matching and scope safety - table-driven cases for layered fs traversal - end-to-end pipeline coverage Signed-off-by: Roman Berezkin <[email protected]>
- resolve image references in tag, digest, and mixed forms - cover edge cases in reference parsing Signed-off-by: Roman Berezkin <[email protected]>
- OCI image layout reader and writer - tarball format adapter for image io - roundtrip tests for layout and tarball Signed-off-by: Roman Berezkin <[email protected]>
- text-format renderer for image metadata - table-driven output tests Signed-off-by: Roman Berezkin <[email protected]>
- transport-level options and timeouts - catalog, tags, fetch, push, inspect operations - options coverage and push regression tests Signed-off-by: Roman Berezkin <[email protected]>
- shared root flags for registry endpoint and auth - common flag-name constants in rootflagnames - root flag wiring with tests Signed-off-by: Roman Berezkin <[email protected]>
- catalog, config, digest, manifest, ls, push, pull subcommands - export to local layout - pull happy-path test Signed-off-by: Roman Berezkin <[email protected]>
- fs root group with cat, ls, tree, extract subcommands - tree rendering with depth limits - tree subcommand tests Signed-off-by: Roman Berezkin <[email protected]>
- bash, zsh, fish completion generation - completion regression tests Signed-off-by: Roman Berezkin <[email protected]>
- integration suite covering cr command surface - smoke test for top-level command registration Signed-off-by: Roman Berezkin <[email protected]>
Signed-off-by: Roman Berezkin <[email protected]>
- `cr push --index` of an OCI layout with one nested index publishes that inner index directly, so the registry stores the real multi-arch index with no 1-entry wrapper. - `--index` only matters for multi-entry layouts; single-entry layouts always unwrap in `LoadLocal` to their inner image or index. - New test pins the unwrap by digest comparison so the wrapper can't sneak back in. Signed-off-by: Roman Berezkin <[email protected]>
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.
Add
crcommand group for container-registry operationsIntroduces
d8 cr: Crane-like workflows under one subtree, with the same registry auth as the rest of the CLI (d8 login/ Docker config).Command Tree
The PR adds the following commands to d8:
Presentation (Basic Flows)
How to review
The d8 cr follows the project conventions:
cmd/command_name.gofor commandscmd/cmd/subcommand.gofor subcommands.cmd/d8/root.go,internal/cr/cmd/*).image->imageio->imagefs->registry->output).