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
{{ message }}
Repository navigation
Provide a way to check the resourceVersion of a specific informer in multiNamespaceInformer #3607
For a regular informer it's possible to check the RV in the following way:
GetInformerForKind / GetInformer returns an Informer
type cast the informer to SharedIndexInformer
call getStore().LastStoreSyncResourceVersion())
With a multiNamespaceCache it's not possible
GetInformerForKind / GetInformer returns an Informer (implemented by multiNamespaceInformer)
multiNamespaceInformer is neither a SharedIndexInformer nor has it any other way to retrieve the last resourceVersion from the right underlying store
I've hit this issue in Cluster API and for now the only possible workaround that I've found was to use reflection. xref: kubernetes-sigs/cluster-api#14283
We'll probably look into this when we make the ReadYourWritesConsistency (#3320) feature work with multiNamespaceCache/multiNamespaceInformer
I'd be up for working on this if you're not already planning to fold it into #3320. Rough idea: since each namespace has its own informer with its own RV, add a way to get the RV per namespace instead of pretending there's one value for the whole thing. Does that fit what you need for the Cluster API case, or would you want it shaped differently?
Activity
Srilakshmi-mothkur commentedon Oct 10, 2026
I'd be up for working on this if you're not already planning to fold it into #3320. Rough idea: since each namespace has its own informer with its own RV, add a way to get the RV per namespace instead of pretending there's one value for the whole thing. Does that fit what you need for the Cluster API case, or would you want it shaped differently?
sbueringer commentedon Oct 12, 2026
Sorry forgot to assign the issue to myself. We want to do this as part of #3320 to ensure it works both for CR and CAPI.
/assign