-
Notifications
You must be signed in to change notification settings - Fork 71
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
[Bug]: Deleting an org with apps in it is slow #3687
Comments
A a build workload is being finalized, its finalizer deletes related kpack builds On the other hand, the buildworkload controller reconciles build workloads into kpack images That is weird, a controller should finalize the resources it creates rather than clean up resources created out of them. TL;DR: we probably need to delete kpack images rather than kpack builds. Before doing that, we need to understand why we delete builds on finalize instead of images in the first place. Another thing - I skimmed over kpack code - I did not see the image controller skip reconciling images that have their deletion timestamp set. When we delete the org, those timestamp are set by k8s and it waits for the objects to be finalized. Could it be that kpack need to fix their reconcilers to skip reconciling objects that are being deleted? |
#3742 made the app workload reconciler not reconcile app workloads that have their deletion timestamp set (i.e. are being deleted). That improved org deletion time (as the app pod is not restarted anymore), but we do see the kpack build pod being restarted. Maybe we need to make the kpack image reconciler not reconcile images that are being deleted, i.e. add a similar deletion timestamp check here |
Kpack PR: buildpacks-community/kpack#1820 This PR has a small effect on overall deletion time. However, it prevents build pods being rescheduled which is a good. |
For the record, here is how to build and install a local kpack version:
That would build kpack images, push them to the local registry and produce a
|
blocking on the kpack pr being merged |
Background
When deleting an org that contains one or more running apps we observed that the kpack build pods are coming up and down for a while before they eventually disappear. This makes org deletion too slow.
The text was updated successfully, but these errors were encountered: