Skip to content
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

Ensure container image layers are pruned #4720

Merged
merged 1 commit into from
Dec 12, 2023

Conversation

cgwalters
Copy link
Member

I was debugging something else and stumbled into this; not heavily tested yet but I think this was a regression from 2ed82ee

I was debugging something else and stumbled into this; not
heavily tested yet but I think this was a regression from
2ed82ee
tests/kolainst/destructive/container-image Dismissed Show dismissed Hide dismissed
cgwalters added a commit to cgwalters/ostree-rs-ext that referenced this pull request Dec 9, 2023
This is kind of a usability regression from
ostreedev@979b93a
"deploy: Add an API to prune undeployed images"

This new API and CLI make it convenient to prune the images,
the layers, *and* the underlying objects.

cc coreos/rpm-ostree#4720

This API in particular is what bootc wants.  For rpm-ostree
we do still want to separate pruning refs from objects, because
rpm-ostree may have layered packages, and we only want to traverse
the ostree repo to prune objects once.
cgwalters added a commit to cgwalters/ostree-rs-ext that referenced this pull request Dec 9, 2023
This is kind of a usability regression from
ostreedev@979b93a
"deploy: Add an API to prune undeployed images"

This new API and CLI make it convenient to prune the images,
the layers, *and* the underlying objects.

cc coreos/rpm-ostree#4720

This API in particular is what bootc wants.  For rpm-ostree
we do still want to separate pruning refs from objects, because
rpm-ostree may have layered packages, and we only want to traverse
the ostree repo to prune objects once.
@cgwalters
Copy link
Member Author

OK and this one is a pretty important bugfix and may even warrant backporting/cherry picking.

Copy link
Member

@jmarrero jmarrero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shell-check is not happy, otherwise lgtm

@cgwalters cgwalters merged commit f99bb94 into coreos:main Dec 12, 2023
16 of 17 checks passed
@cgwalters
Copy link
Member Author

shell-check is not happy,

That one's just in tests, we aren't currently gating on it.

cgwalters added a commit to cgwalters/bootc that referenced this pull request Dec 15, 2023
This will ensure we're really pruning everything.
xref coreos/rpm-ostree#4720

Signed-off-by: Colin Walters <walters@verbum.org>
@jmarrero jmarrero mentioned this pull request Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants