List containerd's images: images list --context=<ctx>#24
Merged
Conversation
`y-cluster images list` overloads to read from a cluster's
k8s.io containerd namespace. Mutually exclusive with the
positional YAML input -- same conceptual question
("what images are in this scope?"), different source.
Output is one row per stored manifest (digest-aliases of
the same content fold together, the bare sha256:<hex>
config-digest row containerd writes is filtered out),
sorted by descending compressed size by default.
--sort=name switches to alphabetical; --format=json emits
[{ref, digest, size_bytes, size_human}] for piping.
Implementation parses `ctr -n k8s.io image list` tabular
output -- the same format pkg/images/load.go already
relies on -- and reads the SIZE column back from its IEC
units. Stable across the containerd versions y-cluster
targets without depending on ctr's --format json shape.
When many rows fold into one, refRank picks the most
informative form: name:tag@digest > name@digest > name:tag
> anything else. Hostport ":port" before the last slash
isn't counted as a tag (the standard containerd-ref edge
case stripTag already handles).
Refs specs/y-cluster/FEATURE_REQUEST_IMAGES_LIST_FROM_CLUSTER.md
solsson
pushed a commit
to Yolean/ystack
that referenced
this pull request
May 12, 2026
Bumps host bin (bin/y-bin.runner.yaml) and the in-cluster y-kustomize Deployment image across four consecutive y-cluster releases: - v0.4.2: `images load` accepts remote refs (Yolean/y-cluster#22) - v0.4.3: fix `images load` for digest-only refs (Yolean/y-cluster#23) - v0.4.4: `images list --context=<ctx>` subcommand (Yolean/y-cluster#24) and tunable Gateway API resource requests (Yolean/y-cluster#25) - v0.4.5: re-fix digest-only image tagging and gateway resource requests (Yolean/y-cluster#26) Image digest verified via `crane digest ghcr.io/yolean/y-cluster:v0.4.5`. sha256 sums copied from v0.4.5's checksums.txt.
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.
No description provided.