You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: keps/sig-api-machinery/5504-comparable-resource-version/README.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -162,7 +162,7 @@ We propose to extend some of the guarantees that the apiserver uses to the
162
162
client as well, particularly the ability to consume the resource version as an
163
163
integer, and the ability to compare resource versions to each other for more
164
164
than equality. Clients can use the new semantics in order to determine the
165
-
relative order of two different resource versions for the same type.
165
+
relative order of two different resource versions from the same resource.
166
166
167
167
## Motivation
168
168
@@ -251,7 +251,9 @@ and efficiency, defined as follows:
251
251
have no leading 0's, and all characters are 0-9, and return an error
252
252
otherwise
253
253
2) Compare length of strings, if they are not equal then the one with larger length is greater
254
-
3) If they are equal, perform a lexical comparison per character left to right until we hit a different character, at that point comparison between the characters will give us the larger integer
254
+
3) If they are equal, perform a lexical comparison per character left to right
255
+
until we hit a different character, at that point comparison between the
256
+
characters will give us the larger integer
255
257
256
258
By doing it via lexical comparison we do not impose a restriction on resource
0 commit comments