Hello,
After an update on my CRD object, the Reconcile method is called and I read my object again using the reconciler struct client.
I do what I have to do to reconcile and then I update my object again and from time to time I have the following error:
"the object has been modified; please apply your changes to the latest version and try again"
I have the feeling that the client read happens a bit too quickly after the first update and that it somehow reads an "old" value that has not yet been updated by the apiserver.
Could something like that happen?
I workaround this by "sleeping" a bit at the very beginning of the Reconcile method before the client reads my object again.
I wonder if there is something more appropriate to do than sleeping every single time I enter the reconcile method.
Thanks for your help
Jim