-
-
Notifications
You must be signed in to change notification settings - Fork 22
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
Default version need to follow official Version Priority #23
Comments
Well, after giving this more thoughts - no, it is not better. |
IMO, this should either align with kubectl (whatever its behaviour is, I'll admit I haven't tried this yet) or always be required. |
Ah, here we go - Version Priority |
And here seems to be the Golang implementation. Although apparently it doesn't follow the description above strictly, as it doesn't handle versions like |
As a side-note, we do have code for the version policy in kube-client/discovery, but it's private: https://github.com/kube-rs/kube-rs/blob/master/kube-client/src/discovery/version.rs |
Oh, had no idea. Looks pretty similar and doesn't use |
doing the cleanup steps described to make this worthy of exporting. needed for kube-rs/kopium#23 Signed-off-by: clux <sszynrae@gmail.com>
doing the cleanup steps described to make this worthy of exporting. needed for kube-rs/kopium#23 Signed-off-by: clux <sszynrae@gmail.com>
doing the cleanup steps described to make this worthy of exporting. needed for kube-rs/kopium#23 Signed-off-by: clux <sszynrae@gmail.com>
* Export Version parser with Ord impl in kube_core doing the cleanup steps described to make this worthy of exporting. needed for kube-rs/kopium#23 Signed-off-by: clux <sszynrae@gmail.com> * remove leftover TODO + improve doc links between discovery and core Signed-off-by: clux <sszynrae@gmail.com> * import more tests, fix one, better docs Signed-off-by: clux <sszynrae@gmail.com> * a bit less Reverse and less double negatives Signed-off-by: clux <sszynrae@gmail.com> * Version export - explicitly request ordering (#767) * Explicitly request which ordering to use Signed-off-by: Teo Klestrup Röijezon <teo@nullable.se> * Add `Version::latest` that includes considers v2 > v2beta1 > v1 Signed-off-by: Teo Klestrup Röijezon <teo@nullable.se> * Rename Version::latest_stable to priority Signed-off-by: Teo Klestrup Röijezon <teo@nullable.se> * Also rename LatestStable accordingly Signed-off-by: Teo Klestrup Röijezon <teo@nullable.se> * rename latest to semantic for language consistency we had two orders ::latest and ::priority, but v.latest() was a ambiguous. v.latest could mean: - we are sorting by age (but that's not true) - we are sorting by latest version in semver semantics (true so think v.semantic() is slightly more clear. v2.semantic() > v1.semantic() feels a little easier to comprehend than v2.latest() > v1.latest() Signed-off-by: clux <sszynrae@gmail.com> * fix self-references and rename semantic to distance Signed-off-by: clux <sszynrae@gmail.com> * rename to generation Signed-off-by: clux <sszynrae@gmail.com> * We need to split on byte lengths, not code point counts (#772) See #764 (comment) Signed-off-by: Teo Klestrup Röijezon <teo@nullable.se> * Apply suggestions from code review Co-authored-by: Teo Klestrup Röijezon <teo.roijezon@stackable.de> * Update kube-core/src/version.rs Co-authored-by: kazk <kazk.dev@gmail.com> Co-authored-by: Teo Klestrup Röijezon <teo.roijezon@stackable.de> Co-authored-by: kazk <kazk.dev@gmail.com>
When multiple versions are described in the CRD and no
--api-version
flag is given it may be better to use the one that is specified instoredVersion
of thestatus
, rather than just the first one.The text was updated successfully, but these errors were encountered: