Closed mattmoor closed 6 years ago
So the linked PR breaks it into:
plugin.go <-- adds deps to the assorted controller so they get linked.
pkg/controller <-- has controller registration functions and the entrypoint that main calls
pkg/controller/<resource> <-- has the controller for <resource>, which registers itself.
It would be good to factor the code in a way to demo a
Foo
resource and aBar
resource.Today it's just
controller.go
at the top-level.