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 combined status #440

Merged
merged 1 commit into from
Sep 1, 2022
Merged

Fix combined status #440

merged 1 commit into from
Sep 1, 2022

Conversation

thll
Copy link
Contributor

@thll thll commented Aug 30, 2022

Fixes #439

Correctly calculate the combined status for a sidecar by using the worst status of any collector. This was probably the original intention, but the used switch statement was handling the "stopped" case wrong.

Don't fall through to an error status, when the collector status is "stopped".
@thll thll requested a review from mpfz0r August 30, 2022 12:36
Copy link
Contributor

@mpfz0r mpfz0r left a comment

Choose a reason for hiding this comment

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

LGTM. Weird to use a switch block for something like that

@mpfz0r mpfz0r merged commit 8e06df9 into master Sep 1, 2022
@mpfz0r mpfz0r deleted the fix/combined-status branch September 1, 2022 15:35
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.

Sidecar wrongly reports "Failing" status when collectors are stopped.
2 participants