-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
feat: Confluent Connector Resource Health Checker - #17695 #17697
Conversation
if obj.status.state == "ERROR" then | ||
hs.status = "Degraded" | ||
for i, condition in ipairs(obj.status.conditions) do | ||
hs.message = condition.message |
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.
Would this cause the health check message to just match whatever is the last message in the conditions?
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.
Yeah it would in its current form. Open to suggestions of what would be preferred 😄
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.
I think it completely depends on the resource. The health check should take all relevant conditions into account.
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.
Hey @crenshaw-dev I've gone through and double checked a number of Connector failure scenarios with this Confluent Operator. Even though conditions is an array, it was only generating one condition each time. In addition, the message being returned in that condition encapsulates all the error messages within that condition. Therefore I've updated the logic and test scenario to mimic the scenario of what's happening. Let me know if any further changes are needed.
3176967
to
40c6077
Compare
❌ Preview Environment deleted from BunnyshellAvailable commands (reply to this comment):
|
❌ Preview Environment deleted from BunnyshellAvailable commands (reply to this comment):
|
❌ Preview Environment deleted from BunnyshellAvailable commands (reply to this comment):
|
❌ Preview Environment deleted from BunnyshellAvailable commands (reply to this comment):
|
Signed-off-by: GitHub <[email protected]>
e56c014
to
92497df
Compare
Signed-off-by: Clint Chester <[email protected]>
92497df
to
98b79b1
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #17697 +/- ##
==========================================
- Coverage 55.19% 55.17% -0.02%
==========================================
Files 324 324
Lines 55257 55257
==========================================
- Hits 30499 30490 -9
- Misses 22137 22156 +19
+ Partials 2621 2611 -10 ☔ View full report in Codecov by Sentry. |
4690822
to
4e1f8d9
Compare
Signed-off-by: Clint Chester <[email protected]>
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.
Thanks for your patience on the review!
…rgoproj#17697) * Adding Synergy as a ArgoCD user Signed-off-by: GitHub <[email protected]> * Health checking Kafka Connector resources Signed-off-by: Clint Chester <[email protected]> * Includes Kafka Connect Task Failures Signed-off-by: Clint Chester <[email protected]> --------- Signed-off-by: GitHub <[email protected]> Signed-off-by: Clint Chester <[email protected]> Signed-off-by: Brett C. Dudo <[email protected]>
…rgoproj#17697) * Adding Synergy as a ArgoCD user Signed-off-by: GitHub <[email protected]> * Health checking Kafka Connector resources Signed-off-by: Clint Chester <[email protected]> * Includes Kafka Connect Task Failures Signed-off-by: Clint Chester <[email protected]> --------- Signed-off-by: GitHub <[email protected]> Signed-off-by: Clint Chester <[email protected]>
This closes #17695. There was a custom health checker for Confluent Connect, but nothing for the Connectors, so this adds that as per the Argo Guide.
Checklist: