-
Notifications
You must be signed in to change notification settings - Fork 235
improve: complete comparable resource version configs #3027
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
base: v5.3
Are you sure you want to change the base?
Conversation
Signed-off-by: Attila Mészáros <[email protected]>
Signed-off-by: Attila Mészáros <[email protected]>
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.
Functionally OK, but I just want to say that 5.3 might contain quite a lot breaking changes so maybe we should reconsider if it should be a minor release if that's so.
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, I wasn't quite sure where some of this would land.
The other thang to add would be to expand the message somewhere when a non-comparable exception occurs to let people know to turn off the setting.
| /** | ||
| * true if we can consider resource versions as integers, therefore it is valid to compare them | ||
| */ | ||
| boolean comparableResourceVersion() default DEFAULT_COMPARABLE_RESOURCE_VERSION; |
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.
javadoc could use an @since tag
| return this; | ||
| } | ||
|
|
||
| public Builder withComparableResourceVersions(boolean comparableResourceVersions) { |
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.
Method name should match the annotation field (i.e. versions vs version)
| * @param value true if internal algorithms can use metadata.resourceVersion as a numeric value. | ||
| * @return this | ||
| */ | ||
| @Deprecated(forRemoval = true) |
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.
Not sure we can remove this method, yet.
No description provided.