Skip to content

Conversation

@openshift-cherrypick-robot
Copy link
Contributor

This is an automated cherry-pick of #342

/assign zhujian7

zhujian7 and others added 2 commits October 27, 2025 07:30
…configuration

When multiple health check probes are configured, if the first probe
returns empty feedback results, the health check was incorrectly marking
the addon as Unknown and returning early, preventing other probes from
being evaluated.

This fix changes the logic to:
- Collect all empty probe fields instead of returning immediately
- Only mark the addon as Unknown if ALL probes have no results
- Allow partial probe results to be considered valid
- Remove redundant check for non-empty results after healthChecker

Fixes open-cluster-management-io#341

Signed-off-by: Claude <[email protected]>
Signed-off-by: zhujian <[email protected]>
Simplify the probe result collection logic by:
- Collecting all probe results upfront, regardless of healthChecker
- Checking for empty results based on FieldResults length
- Removing unnecessary tracking of empty probe fields
- Updating test expectations for multi-probe scenarios

This makes the code cleaner and maintains the fix for supporting
partial probe results with multi-probe configurations.

Signed-off-by: Jia Zhu <[email protected]>

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Signed-off-by: zhujian <[email protected]>
@coderabbitai
Copy link

coderabbitai bot commented Oct 27, 2025

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@zhujian7
Copy link
Member

/lgtm
/approve

@openshift-ci openshift-ci bot added the lgtm label Oct 27, 2025
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 27, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: openshift-cherrypick-robot, zhujian7

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-bot openshift-merge-bot bot merged commit 5ff7dcd into open-cluster-management-io:release-1.1 Oct 27, 2025
14 checks passed
@tesshuflower
Copy link
Contributor

@zhujian7 thanks again for this fix! Will a v1.1.1 be released with this fix?

@zhujian7
Copy link
Member

@tesshuflower please check https://github.com/open-cluster-management-io/addon-framework/releases/tag/v1.1.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants