-
Notifications
You must be signed in to change notification settings - Fork 430
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor: Services should not return interfaces #609
Comments
@juan-lee are you still interested in helping with this? |
I'd caution from returning SDK types from the services. Having dependencies on AzSDK for Go types beyond the service layer implies a tighter coupling to the SDK. Perhaps, we should consider the services layer returns a spec + status type (maybe not a |
What if the |
What do you think about |
@devigned I almost wrote Ways to go around this off the top of my head:
|
/assign |
/close in favor of #757 |
@CecileRobertMichon: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Detailed Description
Follow up on #482 (comment)
We should be returning SDK types for Azure resources in services/ instead of interface{}.
Also, we should remove unused service mocks (we mock the Azure Clients and those are the ones used in tests):
related to #110
Contract changes [optional]
[Describe contract changes between Cluster API Azure Provider controllers, if applicable.]
Data model changes [optional]
[Describe contract changes between Cluster API Azure Provider controllers, if applicable.]
/kind proposal
The text was updated successfully, but these errors were encountered: