PrefectHQ / prefect-operator

A Kubernetes operator for managing Prefect servers and work pools
7 stars 0 forks source link

Refactors controllers to improve test coverage #62

Closed chrisguidry closed 2 weeks ago

chrisguidry commented 2 weeks ago

With these changes, we're at 57% coverage (up from 55%), all while covering more modules than before. There were still some redundant status API calls that would be caught with the outer deferred final update, as well as some unused conditions. We had a nice utility for picking the right condition based on an operation result and error, so I'm using that throughout.