-
Notifications
You must be signed in to change notification settings - Fork 6.5k
feat: Add health check for Ceph CRD #24111
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
base: master
Are you sure you want to change the base?
Conversation
❌ Preview Environment undeployed from BunnyshellAvailable commands (reply to this comment):
|
c086b73 to
0108ce0
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #24111 +/- ##
==========================================
- Coverage 62.29% 62.25% -0.05%
==========================================
Files 351 351
Lines 49213 49213
==========================================
- Hits 30656 30636 -20
- Misses 15640 15652 +12
- Partials 2917 2925 +8 ☔ View full report in Codecov by Sentry. |
0108ce0 to
a8e444c
Compare
f549a73 to
e227e9e
Compare
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.
One small change, otherwise lgtm!
|
|
||
| -- Check state - https://github.com/rook/rook/blob/v1.17.7/pkg/apis/ceph.rook.io/v1/types.go#L621 | ||
| if obj.status.state ~= nil then | ||
| if hs.status == "Healthy" or hs.status == "Connected" then |
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.
| if hs.status == "Healthy" or hs.status == "Connected" then | |
| if hs.status == "Healthy" then |
I think this was added by mistake. "Connected" isn't a value that's set above, and it's not a valid Argo CD health state.
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.
Comment addressed in 007b9c3. Thank you for catching this!
4b86e0b to
007b9c3
Compare
007b9c3 to
3e6dd3f
Compare
|
@crenshaw-dev let me know if there is more I should do. |
d9f68c6 to
a486b03
Compare
Signed-off-by: Arnaud Farbos <[email protected]>
Signed-off-by: Arnaud Farbos <[email protected]>
Signed-off-by: Arnaud Farbos <[email protected]>
a486b03 to
4335156
Compare
Supported CRDs:
This is a way to create coverage for ceph rook operator heath.
Checklist: