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

probes unhealthy only if threshold exeeded #315

Merged
merged 1 commit into from
Nov 25, 2024
Merged

probes unhealthy only if threshold exeeded #315

merged 1 commit into from
Nov 25, 2024

Conversation

maksymvavilov
Copy link
Contributor

@maksymvavilov maksymvavilov commented Nov 25, 2024

This will ensure we mark probes as unhealthy only when consecutive failures exceed the threshold. Before we would mark it as unhealthy and refuse update the record until threshold exceeded.
This leads to a situation when the premature reconciliation on the health status change will be triggered but result in to changes and will fall back to a default validation time.

})
unhealthyAddresses = append(unhealthyAddresses, probe.Spec.Address)
}
// if unhealthy or we haven't probed yet
Copy link
Collaborator

Choose a reason for hiding this comment

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

ok good so assume not healthy until proven is

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes. Unless heathy: true we consider it unhealthy

Copy link
Collaborator

@maleck13 maleck13 left a comment

Choose a reason for hiding this comment

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

changes look good

also verified locally both going to healthy and unhealthy updated the status of the DNSPolicy as expected

@maleck13 maleck13 added this pull request to the merge queue Nov 25, 2024
Merged via the queue into main with commit bee684b Nov 25, 2024
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants