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

   Closes #6943
   
   ## Summary
   
   - Snapshot generated resources before applying them.
   - Roll back already-applied resources in reverse order when deployment fails.
   - Restore previously existing resources and delete resources created during 
the failed deployment.
   - Treat deployer failures as fatal post-action errors, preventing subsequent 
actions such as garbage collection.
   - Preserve existing behavior for non-fatal post-action errors.
   - Include rollback failures in the returned error.
   
   ## Tests
   
   - Added regression coverage simulating an apply failure after persistence.
   - Verify that the previous Deployment is restored.
   - Verify that newly created resources are removed.
   - Verify that the actual GC post-action does not execute after a deployment 
failure.
   - Verify that fatal errors stop subsequent actions while non-fatal errors do 
not.
   
   ## Validation
   
   - `go test ./pkg/trait ./pkg/client` — passed.
   - `go vet ./pkg/trait` — passed.
   - `git diff --check` — passed.
   - `go test ./pkg/...` — one pre-existing failure in 
`pkg/builder/TestGitCloneCommit`, reproduced on an untouched upstream worktree 
at commit `4d5f5b6b3e02b06578f1249faf7a990c4b4746a0`.
   


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