Use controller-runtime controllerutil package #255
Labels
2 - 🍕
Pizza should be eaten daily
enhancement
New code, ahoy!
self care 💅🏽
Tasks that help keep Porter running smoothly
tech debt 💸
What design is being proposed?
We have a lot of functionality that is already done in the
controllerutil
package of controller-runtime. We can leverage this to removethe complexity of writing our own and reduce cognitive load around functionality that already exists.
Since upgrading controller-runtime we can also use interceptors in our unit tests which act like a
prependReactor
from client-go to assert on the failures of certain client calls.Additional Context
This will help provide a means to help maintainability around the operator going forward.
Risks/Concerns
Benefits include utilizing a lib that already does what we need to replace the shared logic we are trying to consume and decouple the things we have rolled out to better create the operator going forward.
What other approaches were considered?
If we don't do it, we suffer the implementation that was used from over a year ago to maintain what could be utilized with a lib we already import.
Implementation details
Swapping out functions, deleting old code and updating the use cases we wish to implement.
Checklist
The text was updated successfully, but these errors were encountered: