This commit refactors the controller to use the standard k8s informer
pattern. Using this pattern makes the code somewhat more compact
since all of the watching is abstracted away.
This commit also adds complete unit tests that run the controller against
a mocked API.
This commit refactors the controller to use the standard k8s informer pattern. Using this pattern makes the code somewhat more compact since all of the watching is abstracted away.
This commit also adds complete unit tests that run the controller against a mocked API.
cc @metalmatze