Skip to content

Conversation

@afarbos
Copy link
Contributor

@afarbos afarbos commented Aug 12, 2025

Supported CRDs:

  • ceph.rook.io/CephCluster
  • ceph.rook.io/CephObjectStore
  • objectbucket.io/ObjectBucketClaim

This is a way to create coverage for ceph rook operator heath.

Checklist:

  • Either (a) I've created an enhancement proposal and discussed it with the community, (b) this is a bug fix, or (c) this does not need to be in the release notes.
  • The title of the PR states what changed and the related issues number (used for the release note).
  • The title of the PR conforms to the Title of the PR
  • I've included "Closes [ISSUE #]" or "Fixes [ISSUE #]" in the description to automatically close the associated issue.
  • I've updated both the CLI and UI to expose my feature, or I plan to submit a second PR with them.
  • Does this PR require documentation updates?
  • I've updated documentation as required by this PR.
  • I have signed off all my commits as required by DCO
  • I have written unit and/or e2e tests for my change. PRs without these are unlikely to be merged.
  • My build is green (troubleshooting builds).
  • My new feature complies with the feature status guidelines.
  • I have added a brief description of why this PR is necessary and/or what this PR solves.
  • Optional. My organization is added to USERS.md.
  • Optional. For bug fixes, I've indicated what older releases this fix should be cherry-picked into (this may or may not happen depending on risk/complexity).

@afarbos afarbos requested a review from a team as a code owner August 12, 2025 00:57
@bunnyshell
Copy link

bunnyshell bot commented Aug 12, 2025

❌ Preview Environment undeployed from Bunnyshell

Available commands (reply to this comment):

  • 🚀 /bns:deploy to deploy the environment

@codecov
Copy link

codecov bot commented Aug 12, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 62.25%. Comparing base (e80395b) to head (4335156).
⚠️ Report is 3 commits behind head on master.

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.
📢 Have feedback on the report? Share it here.

@afarbos afarbos changed the title feat: Add health check for CephCluster CRD feat: Add health check for Ceph CRD Aug 14, 2025
@afarbos afarbos force-pushed the af/cephcluster branch 2 times, most recently from f549a73 to e227e9e Compare August 14, 2025 18:59
@crenshaw-dev crenshaw-dev added the component:health-check Issue related to built-in Health Check customizations label Sep 6, 2025
Copy link
Member

@crenshaw-dev crenshaw-dev left a 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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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.

Copy link
Contributor Author

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!

@afarbos
Copy link
Contributor Author

afarbos commented Oct 7, 2025

@crenshaw-dev let me know if there is more I should do.

@afarbos afarbos force-pushed the af/cephcluster branch 2 times, most recently from d9f68c6 to a486b03 Compare October 27, 2025 23:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component:health-check Issue related to built-in Health Check customizations

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants