-
Notifications
You must be signed in to change notification settings - Fork 66
feat: add layer and image size information to describe command #760
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
f38b52f to
b33d616
Compare
- Add Size field to Layers struct to track individual layer sizes - Add Size field to ImageInfo struct to track total image size - Modify getImageLayersInfo function to calculate and return both layer sizes and total image size - Update text output format to display image size information - Maintain backward compatibility with existing functionality This enhancement provides users with detailed size information for both individual layers and total image sizes when using the describe command with the --layers flag. Signed-off-by: Marin Dzhigarov <m.dzhigarov@gmail.com>
b33d616 to
f57b20f
Compare
Signed-off-by: Marin Dzhigarov <m.dzhigarov@gmail.com>
cf189df to
e92ceda
Compare
Signed-off-by: Marin Dzhigarov <m.dzhigarov@gmail.com>
|
Can you please revise develop? |
Done |
|
@mdzhigarov @joaopapereira created a PR #761 to run ghcr external tests based on PAT user configured to access ghcr registry packages and workflows |
devanshuVmware
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
merging the PR as env secrets are not accessible to fork users. The test has succeeded earlier using workflow_dispatch. |
Summary
This PR enhances the
imgpkg describecommand to include size information for both individual layers and total image sizes when using the--layersflag.Changes
Sizefield toLayersstruct to track individual layer sizesSizefield toImageInfostruct to track total image sizegetImageLayersInfofunction to calculate and return both layer sizes and total image sizeTesting
Example Output
When using
imgpkg describe -b <bundle> --layers, users will now see: