-
Notifications
You must be signed in to change notification settings - Fork 820
Explicit healty states #1890
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
Explicit healty states #1890
Conversation
Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @pstibrany. The intention in the IsHealthy()
looks clearer to me and the behaviour will not change if in the future we'll add new IngesterState
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved provided the logic is updated if #1866 merges
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with nit
Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
What this PR does:
Inspired by PR #1866, this PR changes
IsHealthy
function to be explicit about which states are healthy. There is no change in functionality.Which issue(s) this PR fixes:
There is no bug.
Checklist
CHANGELOG.md
updated - no functionality change