feat: rework autoRollback spec to optionally support Error phases#6442
feat: rework autoRollback spec to optionally support Error phases#6442jessesuen wants to merge 1 commit into
Conversation
✅ Deploy Preview for docs-kargo-io ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
e76d53b to
e30f2e9
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6442 +/- ##
=======================================
Coverage 58.47% 58.47%
=======================================
Files 501 501
Lines 42141 42141
=======================================
Hits 24642 24642
Misses 16011 16011
Partials 1488 1488 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Signed-off-by: Jesse Suen <jesse@akuity.io>
e30f2e9 to
f655204
Compare
EronWright
left a comment
There was a problem hiding this comment.
The disparity between Error and Errored is pretty glaring, and assumedly comes from using preexisting enums PromotionPhase and VerificationPhase correct? Is it worth it?
I assume the logic changes would come in a followup.
Yes, it's unfortunate, and it's because of the historical difference in the enums from different projects (kargo vs. argo rollouts).
Perhaps. For example, Verifications support an
Correct, they are not in this repo. |
Description
This is a CRD spec change. The original
autoRollbackspec looked like the followingThe above has a limitation: we only consider
Failedpromotions/verifications, notError. However, I think many users don't really distinguish between failures and errors, so I want to support Errors as an option. This change modifies it to:The default, if they just specify:
autoRollback: {}would be equivalent to:Checklist
Eligibility
(types change only, not counting generated code)
Quality
AI Use Disclosure
This PR was written:
Sign-Off
All commits:
git commit -s) (required)git commit -S) (encouraged)