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

Container images are deleted alongside packages #2257

Merged
merged 1 commit into from
Mar 10, 2023

Conversation

kieron-dev
Copy link
Contributor

Is there a related GitHub Issue?

#2228

What is this change about?

  • Introduce image.Client
  • Delete package images when deleting CFPackage

Does this PR introduce a breaking change?

No

Acceptance Steps

Push an app.
See its package image exists in a registry
Delete the app.
See the image disappear

Tag your pair, your PM, and/or team

@gcapizzi

@kieron-dev kieron-dev force-pushed the issues/2228-delete-package-images branch 2 times, most recently from c55a962 to 5dfc8d2 Compare March 7, 2023 16:26
@kieron-dev kieron-dev marked this pull request as draft March 7, 2023 17:25
@kieron-dev
Copy link
Contributor Author

Converting to draft as we seem to have dangling tags

imageDeleter.DeleteReturns(errors.New("oops"))
})

It("ignores the errors and finishes finalization", func() {
Copy link
Member

Choose a reason for hiding this comment

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

Cool I think this is good. I was worried about an external resource outage blocking finalization. Any ideas around how to make this scenario easier for operators to detect though? It reminds me of the "orphaned blob" problem that CF for VMs found itself dealing with.

@tcdowney
Copy link
Member

tcdowney commented Mar 7, 2023

When we tried to do this back in the day on CF for K8s we found a lot of variance between registries around how they handled image deletion. I'm having trouble remembering the specifics, but I'm thinking some had non-standard delete endpoints (probably DockerHub?) while others supported the ability to delete by digest and others did not. Anyways, I'm wondering if y'all ran into similar issues here?

@kieron-dev kieron-dev marked this pull request as ready for review March 8, 2023 12:29
@kieron-dev kieron-dev marked this pull request as draft March 9, 2023 15:38
@kieron-dev kieron-dev force-pushed the issues/2228-delete-package-images branch 2 times, most recently from 8118ee8 to 0f320a6 Compare March 10, 2023 15:10
@kieron-dev kieron-dev marked this pull request as ready for review March 10, 2023 15:17
Issue: #2228
Co-authored-by: Giuseppe Capizzi <gcapizzi@vmware.com>
@kieron-dev kieron-dev force-pushed the issues/2228-delete-package-images branch from 0f320a6 to f559b52 Compare March 10, 2023 16:25
@gcapizzi gcapizzi merged commit ceb509e into main Mar 10, 2023
@gcapizzi gcapizzi deleted the issues/2228-delete-package-images branch March 10, 2023 16:58
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.

4 participants