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

Cleanup old packages in package reconciler #2316

Merged
merged 1 commit into from
Mar 20, 2023

Conversation

kieron-dev
Copy link
Contributor

Is there a related GitHub Issue?

#2232

What is this change about?

Automatically delete packages with uploaded sources, retaining the package associated with the app's current droplet, and N more, in order of creation date.

Does this PR introduce a breaking change?

New controllers config map value maxRetainedPackagesPerApp.

Acceptance Steps

See story

Tag your pair, your PM, and/or team

@gcapizzi

@kieron-dev kieron-dev force-pushed the issues/2232-delete-older-packages branch from cc2cfa1 to 69d8e0e Compare March 20, 2023 14:52
@kieron-dev kieron-dev changed the base branch from main to api-md-create-role-fix March 20, 2023 15:17
@kieron-dev kieron-dev changed the base branch from api-md-create-role-fix to main March 20, 2023 15:17
@kieron-dev kieron-dev force-pushed the issues/2232-delete-older-packages branch from 69d8e0e to 1bc6aa4 Compare March 20, 2023 15:17
@kieron-dev kieron-dev force-pushed the issues/2232-delete-older-packages branch from 1bc6aa4 to 35f8784 Compare March 20, 2023 16:08
Here we also stop using the patching reconciler in the package
reconciler as it produced flaky behaviour. Instead we save status or the
main resource as required.

This introduces a new config value `MaxRetainedPackagesPerApp` in the
controllers config, and a corresponding value in the controllers section
of the helm values `maxRetainedPackagesPerApp`.

Issue: #2232
Co-authored-by: Giuseppe Capizzi <gcapizzi@vmware.com>
Co-authored-by: Kieron Browne <kbrowne@vmware.com>
@kieron-dev kieron-dev force-pushed the issues/2232-delete-older-packages branch from 35f8784 to f48faf4 Compare March 20, 2023 16:29
@kieron-dev kieron-dev merged commit 6a33830 into main Mar 20, 2023
@kieron-dev kieron-dev deleted the issues/2232-delete-older-packages branch March 20, 2023 17:15
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.

3 participants