Skip to content

empty resourceVersion during creation with fakeclient.Patch with SSA #3310

@ezeriver94

Description

@ezeriver94

when using fakeclient, if I explicitly create an object it will contain resourceVersion == "1", but if the object is created using Patch with client.Apply option (and probably using client.Apply with ApplyConfiguration, although I haven't tested) resourceVersion remains empty. This leads to does not have any resource version we can use when trying to patch the resource again using OptimisticLock.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions