8000 Enhance healthcheck failure handling and logging by teresaromero · Pull Request #4595 · okteto/okteto · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Enhance healthcheck failure handling and logging #4595

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

Merged
merged 7 commits into from
Dec 11, 2024

Conversation

teresaromero
Copy link
Contributor
@teresaromero teresaromero commented Dec 2, 2024

Proposed changes

Fixes https://okteto.atlassian.net/browse/DEV-260

This PR proposes a change to show an information log whenever a readiness probe is failing and a service is waiting for being deployed.
It keeps the behaviour of returning an error when a liveness probe fails.

Refactors:
Events: detect the readiness and the liveness probe fail message and return new Failure so the code can identify the origin.
Pod probes detection: when readiness fails, log a message while waiting for being deployed, when livenes return error.

Screenshot 2024-12-02 at 14 15 49 Screenshot 2024-12-02 at 14 16 35

How to validate

Build the binary and configure different probes and healthchecks

Sorry, something went wrong.

@teresaromero teresaromero requested a review from a team as a code owner December 2, 2024 13:07
Copy link
codecov bot commented Dec 2, 2024

Codecov Report

Attention: Patch coverage is 0% with 41 lines in your changes missing coverage. Please review.

Project coverage is 47.74%. Comparing base (936bc0d) to head (df8c749).
Report is 9 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4595      +/-   ##
==========================================
- Coverage   47.76%   47.74%   -0.03%     
==========================================
  Files         370      370              
  Lines       29839    29855      +16     
==========================================
  Hits        14253    14253              
- Misses      14479    14495      +16     
  Partials     1107     1107              

@teresaromero teresaromero force-pushed the tere/DEV-260-fix-readiness-loop branch from aebf147 to cce9ac7 Compare December 3, 2024 13:28
Signed-off-by: Teresa Romero <teresa@okteto.com>
Signed-off-by: Teresa Romero <teresa@okteto.com>
Signed-off-by: Teresa Romero <teresa@okteto.com>
Signed-off-by: Teresa Romero <teresa@okteto.com>
@teresaromero teresaromero force-pushed the tere/DEV-260-fix-readiness-loop branch from 703f38b to 1293085 Compare December 10, 2024 10:18
Signed-off-by: Teresa Romero <teresa@okteto.com>
Copy link
Member
@ifbyol ifbyol left a comment

Choose a reason for hiding this comment

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

Added a comment about how we check the error, but apart from that, everything else looks good, and it is working as expected

Signed-off-by: Teresa Romero <teresa@okteto.com>
@teresaromero teresaromero merged commit 135b966 into master Dec 11, 2024
12 of 13 checks passed
@teresaromero teresaromero deleted the tere/DEV-260-fix-readiness-loop branch December 11, 2024 14:16
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.

3622
3 participants
0