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.
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 todoes not have any resource version we can usewhen trying to patch the resource again using OptimisticLock.