operator-framework / operator-controller

A new and improved management framework for extending Kubernetes with Operators
https://operator-framework.github.io/operator-controller/
Apache License 2.0
54 stars 53 forks source link

Improve unit testing of `reconcile()` function. #879

Closed tmshort closed 1 month ago

tmshort commented 4 months ago

As discussed in the meeting earlier today, I'd like to see us move to a model where this functions is a bit easier to unit test by creating logical abstractions where they make sense and mocking them during unit testing.

Totally fine with this being a follow-up, just commenting to track the recommendation :)

_Originally posted by @everettraven in https://github.com/operator-framework/operator-controller/pull/846#discussion_r1604028873_

LalatenduMohanty commented 3 months ago

/assign

joelanford commented 1 month ago

This was closed by #1068 and #1033