AkhDmitrii opened a new pull request, #7001:
URL: https://github.com/apache/camel-k/pull/7001

   Fixes #7000.
   
   The Integration controller now includes the resource version it read when it 
patches status. If a digest change has already reset the Integration to 
`Initialization`, Kubernetes rejects the stale transition to `Running` with a 
conflict. The controller then reconciles the latest Integration.
   
   The regression test applies both transitions from the same copy of a 
deploying Integration. It checks that the reset succeeds, the stale write 
returns a conflict, and the stored phase stays at `Initialization`. On 
unpatched main, the stale write returned nil.
   
   I also tested the change on Camel K 2.11.0 in kind. With the two writes 
forced into that order, the [downstream lifecycle 
test](https://github.com/Netcracker/qubership-integration-platform/blob/9753b8dd33c68a89b717420e4fc2fa6b8997dd82/e2e/specs/k8s/custom-resources.spec.ts#L37)
 timed out waiting for a removed route to disappear. With the patch, the 
removed route returned 404 and the other route stayed live. The same test 
passed in 59 seconds.
   
   _AI-generated by OpenAI Codex on behalf of @AkhDmitrii._
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to