java-operator-sdk icon indicating copy to clipboard operation
java-operator-sdk copied to clipboard

Comparable Resource Versions in Kubernetes

Open csviri opened this issue 3 months ago • 3 comments

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)

csviri avatar Sep 15 '25 18:09 csviri

Added for now into 6.0 but we can check on this as soon as officially available in Kubernetes

csviri avatar Sep 15 '25 18:09 csviri

see kep: https://github.com/kubernetes/enhancements/tree/master/keps/sig-api-machinery/5504-comparable-resource-version

csviri avatar Oct 10 '25 10:10 csviri

checking the KEP, they are actually not changing anything, just adding utility and tests.

csviri avatar Oct 10 '25 10:10 csviri