Skip to content

Provide a way to check the resourceVersion of a specific informer in multiNamespaceInformer #3607

Open

Description

@sbueringer

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

Activity

  1. Srilakshmi-mothkur commented on Oct 10, 2026

    @Srilakshmi-mothkur

    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?

  2. sbueringer commented on Oct 12, 2026

    @sbueringer
    MemberAuthor

    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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions