Skip to content

Prune images after update start#135

Merged
mike-sul merged 2 commits into
mainfrom
refact/prune-images-after-update-start
Apr 27, 2026
Merged

Prune images after update start#135
mike-sul merged 2 commits into
mainfrom
refact/prune-images-after-update-start

Conversation

@mike-sul
Copy link
Copy Markdown
Collaborator

@mike-sul mike-sul commented Apr 24, 2026

Add option to prune all unused images on complete

@mike-sul mike-sul force-pushed the refact/prune-images-after-update-start branch from cea65e5 to 81f9877 Compare April 24, 2026 12:57
@mike-sul mike-sul changed the title Refact/prune images after update start Prune images after update start Apr 24, 2026
@mike-sul mike-sul marked this pull request as ready for review April 24, 2026 13:00
@mike-sul mike-sul requested a review from detsch April 24, 2026 13:00
Drop the unused KeepApps field and CompleteWithPruning variadic app
arguments. Pruning now relies only on the updated app set when
determining apps to remove.

Signed-off-by: Mike Sul <mike.sul@foundries.io>
Add --prune-all-images to update complete. When used together with
--prune, the complete flow can remove all container images not used by
any container, instead of pruning only images related to apps being
uninstalled.

Propagate image prune mode through update completion and allow image
pruning even when no apps are being removed.

Signed-off-by: Mike Sul <mike.sul@foundries.io>
@mike-sul mike-sul force-pushed the refact/prune-images-after-update-start branch from 81f9877 to 123b2df Compare April 27, 2026 07:23
@mike-sul mike-sul merged commit 05c7ceb into main Apr 27, 2026
4 checks passed
@mike-sul mike-sul deleted the refact/prune-images-after-update-start branch April 27, 2026 07:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants