Skip to content

patch.Helper() should provide access to new ResourceVersion (for wait until cache is synced) #12805

@guettli

Description

@guettli

What would you like to be added (User Story)?

KEP-5504: Comparable Resource Version will make ResourceVersion officially comparable.

This has the great benefit that "wait until cache is synced after update" is very easy to implement.

But you need the new ResourceVersion after the update.

We use patch.Helper a lot, and it would be great if it could expose the new ResourceVersion.

How could the RV (created by the Patch of patch.Helper) be exposed?

Related: Idea: Provide read your own write for the cache-backed client · Issue #3320 · kubernetes-sigs/controller-runtime

Detailed Description

.

Anything else you would like to add?

No response

Label(s) to be applied

/kind feature

/area util

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.needs-priorityIndicates an issue lacks a `priority/foo` label and requires one.needs-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions