Closed osdrv closed 4 years ago
@juliogreff this is a draft version of this PR and I'd be super happy to hear your thoughts and suggestions. Thanks!
I can take another harder look and nitpick, but so far LGTM. What's needed to take it out of draft?
@juliogreff I mainly wanted to make sure I followed your guidance correctly and left no elephants in the room. Commit management is the only todo so far.
This commit changes the signature of clusterclientstore interface and arms it with
GetApplicationClusterClientset/2
method which returns an instance ofclusterclientstore.ClientsetInterface
. The new composite interface is supposed to embed kubernetes and shipper clientsets and informer factories. The aforementioned method is the one that can return an error, which is opposite to the formerclusterclientset.Interface
behavior where every independent method call toGetConfig/1
,GetClient/1
andGetInformerFactory/1
could return an error independently, leaving the client with a responsibility if it's ok to proceed forward.Fixes #276