Closed flavio closed 4 months ago
@kubewarden/kubewarden-developers this is block due an issue in the upgrade process of the controller. As we discussed during one of our daily, I'll work on code to use the createOrUpdate
helper function from the controller-runtime package to simplify our code and workaround this.
I've rebased the PR for this issue on top of #730 . Moving this to block until we merge that PR.
As now we merge all the refactoring PRs in the controller, I'll resume this work. Starting by retesting the upgrade process
Each
PolicyServer
resource owns a series of Kubernetes resources:Currently none of these resources are set to be owned by the PolicyServer instance that created them. Because of that, we have this custom code that deals with the cleanup of these resources.
We can rely on Kubernetes' garbage collector to cleanup all these resources, removing code from our code base.
Acceptance criteria
finalizer
from the Policy Server instance