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

   Fixes #6581
   
   ### Summary
   Previously, when `trait.Apply` failed in `monitorAction` (or 
`buildCompleteAction`), the Integration was placed in `Error` phase with 
`InitializationFailed` reason. On subsequent reconciliations, 
`isInInitializationFailed` short-circuited before `trait.Apply` could run 
again, leaving the Integration stuck in `Error` even after the underlying issue 
(e.g. a missing pull secret) was fixed.
   
   Changes:
   - Introduced `DeploymentError` and `RuntimeError` condition reasons to 
distinguish trait/deployment failures from Pod/Deployment runtime failures.
   - Used `DeploymentError` when `trait.Apply` fails during deployment so 
`controller-runtime`'s exponential backoff retries `trait.Apply` until 
resolved, then transitions the Integration back to `Deploying`/`Running`.
   - Used `RuntimeError` for Pod/Deployment/Knative runtime failures (which are 
already re-triggered by Pod/Deployment watch events).
   - Added unit tests covering `DeploymentError` recovery and `RuntimeError` 
condition reasons.


-- 
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