Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content
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

fix: Policy/policy.open-cluster-management.io health check is broken (#20108) (cherry-pick #20109) #20258

Merged
merged 1 commit into from
Oct 6, 2024

Conversation

gcp-cherry-pick-bot[bot]
Copy link

Cherry-picked fix: Policy/policy.open-cluster-management.io health check is broken (#20108) (#20109)

Tried using the health check as listed here but it gave error:

| error setting app health: failed to get resource health for "Policy" with name "XXXX" in namespace "local-cluster": :35: invalid value (nil) at index 1 in table for concat stack traceback: [G]: in function 'concat' :35: in main chunk [G]: ?

This change fixes the error by updating how the noncompliant clusters are tracked and counted to use latest Lua recommendations.

Signed-off-by: Ian Tewksbury itewk@redhat.com

…20108) (#20109)

Tried using the health check as listed here but it gave error:

| error setting app health: failed to get resource health for "Policy" with name "XXXX" in namespace "local-cluster": <string>:35: invalid value (nil) at index 1 in table for concat stack traceback: [G]: in function 'concat' <string>:35: in main chunk [G]: ?

This change fixes the error by updating how the noncompliant clusters are tracked and counted to use latest Lua recommendations.

Signed-off-by: Ian Tewksbury <itewk@redhat.com>
@gcp-cherry-pick-bot gcp-cherry-pick-bot bot requested a review from a team as a code owner October 6, 2024 19:33
@crenshaw-dev crenshaw-dev merged commit 7244b8b into release-2.13 Oct 6, 2024
6 of 7 checks passed
@crenshaw-dev crenshaw-dev deleted the cherry-pick-02c5e3-release-2.13 branch October 6, 2024 19:35
Copy link

codecov bot commented Oct 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 55.86%. Comparing base (8e81bb6) to head (8f36030).
Report is 1 commits behind head on release-2.13.

Additional details and impacted files
@@               Coverage Diff                @@
##           release-2.13   #20258      +/-   ##
================================================
- Coverage         55.88%   55.86%   -0.03%     
================================================
  Files               320      320              
  Lines             44411    44411              
================================================
- Hits              24818    24809       -9     
- Misses            17035    17036       +1     
- Partials           2558     2566       +8     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants