Skip to content

Conversation

@csviri
Copy link
Collaborator

@csviri csviri commented Oct 31, 2025

No description provided.

Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Oct 31, 2025
@csviri csviri requested review from metacosm and shawkins October 31, 2025 23:57
@csviri csviri marked this pull request as ready for review October 31, 2025 23:57
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Oct 31, 2025
@openshift-ci openshift-ci bot requested a review from xstefank October 31, 2025 23:57
@metacosm metacosm changed the title imrpove: complete comparable resource version configs improve: complete comparable resource version configs Nov 3, 2025
Copy link
Collaborator

@xstefank xstefank left a 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.

Copy link
Collaborator

@shawkins shawkins left a 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;
Copy link
Collaborator

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) {
Copy link
Collaborator

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)
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants