With new resources being added and further resources being requested I'd like to propose some refactoring with the intent to make delivering and maintaining these easier down the line:
- move separate controllers into their own packages
Once this is done, it will be easier to pull out common interfaces and reason about them, the most obvious changes to me are:
- move (very gradually) towards a clean architecture approach, to aid in unit testing:
- in the first instance I think that'd mean converting dependencies on the cloudflare API into an interface and depending on that interface
- similarly I'd like to hide touching kubernetes behind an interface
You know this code base better than me, so is there anything I've missed that's on your radar?
With new resources being added and further resources being requested I'd like to propose some refactoring with the intent to make delivering and maintaining these easier down the line:
Once this is done, it will be easier to pull out common interfaces and reason about them, the most obvious changes to me are:
You know this code base better than me, so is there anything I've missed that's on your radar?