-
Notifications
You must be signed in to change notification settings - Fork 6.4k
feat: Add health checks for olm operators #7126
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: Add health checks for olm operators #7126
Conversation
Codecov Report
@@ Coverage Diff @@
## master #7126 +/- ##
=======================================
Coverage 41.14% 41.14%
=======================================
Files 158 158
Lines 21230 21230
=======================================
Hits 8736 8736
Misses 11241 11241
Partials 1253 1253
Continue to review full report at Codecov.
|
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 @ishitasequeira! I have one minor comment to be addressed, please see below.
end | ||
end | ||
end | ||
return health_status |
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.
In the rare case where obj.status
is nil
, we'd return an empty health_status
while we should really return a Progressing
status.
Can you please initialize health_status
before returning it?
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.
Thank you @jannfis for the review. I have added the Progressing status.
Signed-off-by: ishitasequeira <isequeir@redhat.com>
Signed-off-by: ishitasequeira <isequeir@redhat.com>
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, thanks @ishitasequeira !
* feat: Add health checks for olm operators Signed-off-by: ishitasequeira <isequeir@redhat.com> * Addressed the PR comments Signed-off-by: ishitasequeira <isequeir@redhat.com> Signed-off-by: viktorplakida <plakyda1@gmail.com>
Fixes [ISSUE #5506]
Note on DCO:
If the DCO action in the integration test fails, one or more of your commits are not signed off. Please click on the Details link next to the DCO action for instructions on how to resolve this.
Checklist:
Signed off by Ishita Sequeira