Skip to content
This repository has been archived by the owner on Nov 7, 2024. It is now read-only.

deploy: Add an API to prune undeployed images #498

Merged
merged 1 commit into from
Jul 6, 2023

Conversation

cgwalters
Copy link
Member

This is part of fixing coreos/rpm-ostree#4391 but is also in the general theme of making things less "stateful".

A huge huge mess today is rpm-ostree rebase and bootc switch both have --retain options which keep the previous image.

But really what we want is to use the deployments as source-of-truth; that way if e.g. an admin pins a deployment, it automatically pins the image too.

And this will help strongly align with the bootc direction in reconciling to desired state.

This is part of fixing coreos/rpm-ostree#4391
but is also in the general theme of making things less "stateful".

A huge huge mess today is `rpm-ostree rebase` and `bootc switch`
both have `--retain` options which keep the previous image.

But really what we want is to use the deployments as source-of-truth;
that way if e.g. an admin pins a deployment, it automatically pins
the image too.

And this will help strongly align with the bootc direction in
reconciling to desired state.
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.

lgtm

@jmarrero jmarrero merged commit e1de5a1 into ostreedev:main Jul 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants