-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Move service.ConfigMapConverterFunc to config.MapConverterFunc #4673
Conversation
The drop of the Config prefix from the func name was forced by go lint, which does not like to repeat the package name as the prefix for types. Signed-off-by: Bogdan Drutu <[email protected]>
cc3708f
to
c71b003
Compare
Codecov Report
@@ Coverage Diff @@
## main #4673 +/- ##
=======================================
Coverage 90.72% 90.72%
=======================================
Files 179 179
Lines 10627 10627
=======================================
Hits 9641 9641
Misses 765 765
Partials 221 221
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
@Aneurysm9 this is a breaking change, but should be an easy fix if you depend on it in your distro, so I assume not a problem, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is a breaking change, but should be an easy fix if you depend on it in your distro, so I assume not a problem, right?
Yes, I believe we can work with this. #4672 is more important to address breakage that we could not fix without code duplication.
I think the addition of a context.Context
to this function signature is a valuable addition and was done in #4668 so could be done here, but as long as it is done before the next release there wouldn't need to be two breaking changes here to deal with.
// TODO: Consider to add a context as the first argument. | ||
type MapConverterFunc func(*Map) error |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe that this is a valuable addition and should be done now.
The drop of the Config prefix from the func name was forced by go lint, which does not like to repeat the package name as the prefix for types.
Signed-off-by: Bogdan Drutu [email protected]