Comparable Resource Versions in Kubernetes
In future (k8s v1.35) going to support officially comparable resources versions: https://github.com/kubernetes/enhancements/pull/5505
This has implications on our implementations - we already support this with feature flag (by default turned off) in informer temporal caches. But we will be able to optimize better for example in PrimaryUpdateAndCacheUtils - that would no longer require to do the update through optimistic locking.
TODO discuss:
- [ ] how to support non complient resources. Automatic detection vs explicit configuration
- [ ] which version to ship? (basically this is supported also now in Kubernetes so we might target 5.2+)
- [ ] Identify all the improvements we can do based on this. (some PR-s already added)
Added for now into 6.0 but we can check on this as soon as officially available in Kubernetes
see kep: https://github.com/kubernetes/enhancements/tree/master/keps/sig-api-machinery/5504-comparable-resource-version
checking the KEP, they are actually not changing anything, just adding utility and tests.