-
Notifications
You must be signed in to change notification settings - Fork 6.5k
fix(health): use promotion resource Ready condition regardless of reason #24971
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(health): use promotion resource Ready condition regardless of reason #24971
Conversation
Signed-off-by: Michael Crenshaw <[email protected]>
❌ Preview Environment deleted from BunnyshellAvailable commands (reply to this comment):
|
Signed-off-by: Michael Crenshaw <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #24971 +/- ##
=========================================
Coverage ? 60.84%
=========================================
Files ? 351
Lines ? 60489
Branches ? 0
=========================================
Hits ? 36807
Misses ? 20753
Partials ? 2929 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…son (#24971) Signed-off-by: Michael Crenshaw <[email protected]>
|
❌ Cherry-pick failed for 3.0. Please check the workflow logs for details. |
|
❌ Cherry-pick failed for 3.1. Please check the workflow logs for details. |
|
🍒 Cherry-pick PR created for 3.2: #24973 |
…son (cherry-pick #24971 for 3.2) (#24973) Signed-off-by: Michael Crenshaw <[email protected]> Co-authored-by: Michael Crenshaw <[email protected]>
…son (argoproj#24971) Signed-off-by: Michael Crenshaw <[email protected]> Signed-off-by: Dobromir Zahariev <[email protected]>
…son (argoproj#24971) Signed-off-by: Michael Crenshaw <[email protected]>
…son (argoproj#24971) Signed-off-by: Michael Crenshaw <[email protected]>
Right now we only catch Ready=False if the reason is ReconciliationError. But GitOps Promoter now produces other reasons. So right now we miss the failure condition and instead fall into logic about missing data in the
status.environmentsblock.The change handles Ready=False regardless of reason. It injects the reason name in the message if it's not just ReconciliationError.