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(health): only consider non-empty health checks (cherry-pick #20232) #20235

Merged
merged 1 commit into from
Oct 4, 2024

Conversation

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

Cherry-picked fix(health): only consider non-empty health checks (#20232)

  • fix(health): only consider non-empty health checks

For wildcard health checks, only consider wildcards with a non-empty
health check. Fixes #16905 (at least partially).

Signed-off-by: Blake Pettersson blake.pettersson@gmail.com

  • test: renaming test case for clarity

Signed-off-by: Blake Pettersson blake.pettersson@gmail.com

  • refactor: add clarity as to what the function is supposed to do

Signed-off-by: Blake Pettersson blake.pettersson@gmail.com

  • Update docs/operator-manual/health.md

Co-authored-by: Michael Crenshaw 350466+crenshaw-dev@users.noreply.github.com
Signed-off-by: Blake Pettersson blake.pettersson@gmail.com

  • test: add test case for */* override with empty healthcheck

Signed-off-by: Blake Pettersson blake.pettersson@gmail.com


Signed-off-by: Blake Pettersson blake.pettersson@gmail.com
Co-authored-by: Michael Crenshaw 350466+crenshaw-dev@users.noreply.github.com

* fix(health): only consider non-empty health checks

For wildcard health checks, only consider wildcards with a non-empty
health check. Fixes #16905 (at least partially).

Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com>

* test: renaming test case for clarity

Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com>

* refactor: add clarity as to what the function is supposed to do

Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com>

* Update docs/operator-manual/health.md

Co-authored-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com>

* test: add test case for `*/*` override with empty healthcheck

Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com>

---------

Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com>
Co-authored-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
@gcp-cherry-pick-bot gcp-cherry-pick-bot bot requested review from a team as code owners October 4, 2024 19:35
@crenshaw-dev crenshaw-dev merged commit 3bc2e1a into release-2.13 Oct 4, 2024
9 of 12 checks passed
@crenshaw-dev crenshaw-dev deleted the cherry-pick-5e20be-release-2.13 branch October 4, 2024 19:35
Copy link

codecov bot commented Oct 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 55.88%. Comparing base (99b30a8) to head (084f3eb).
Report is 5 commits behind head on release-2.13.

Additional details and impacted files
@@               Coverage Diff                @@
##           release-2.13   #20235      +/-   ##
================================================
+ Coverage         55.78%   55.88%   +0.10%     
================================================
  Files               320      320              
  Lines             44384    44411      +27     
================================================
+ Hits              24759    24821      +62     
+ Misses            17060    17025      -35     
  Partials           2565     2565              

☔ 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