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

Add liveness probe to created container if otelcol configuration supports a health_check. #574

Conversation

adriankostrubiak-tomtom
Copy link
Contributor

Add liveness probe to created container if otelcol configuration supports a health_check.

Fixes #571

Signed-off-by: Adrian Kostrubiak adrian.kostrubiak@tomtom.com

…orts a health_check.

Fixes open-telemetry#571

Signed-off-by: Adrian Kostrubiak <adrian.kostrubiak@tomtom.com>
Copy link
Member

@jpkrohling jpkrohling left a comment

Choose a reason for hiding this comment

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

Looks great! A few adjustments here and there and this is ready to go.

pkg/collector/adapters/config_to_probe.go Outdated Show resolved Hide resolved
pkg/collector/adapters/config_to_probe.go Outdated Show resolved Hide resolved
pkg/collector/adapters/config_to_probe.go Outdated Show resolved Hide resolved
pkg/collector/adapters/config_to_probe.go Outdated Show resolved Hide resolved
pkg/collector/adapters/config_to_probe.go Outdated Show resolved Hide resolved
pkg/collector/adapters/config_to_probe_test.go Outdated Show resolved Hide resolved
pkg/collector/adapters/config_to_probe_test.go Outdated Show resolved Hide resolved
pkg/collector/adapters/config_to_probe_test.go Outdated Show resolved Hide resolved
…empty; refine how we choose a healthcheck extension; rework tests to be table drive, flesh out a few more cases;
@adriankostrubiak-tomtom
Copy link
Contributor Author

adriankostrubiak-tomtom commented Nov 25, 2021

@jpkrohling, thanks for the feedback - I appreciate it. I pushed updates to address your feedback.

Copy link
Member

@jpkrohling jpkrohling left a comment

Choose a reason for hiding this comment

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

Looks good, just get the test under the same package as the code, so that the errors can be kept local. I know there's an argument about exposing the errors as part of the public API, but I don't think it's what we are currently doing in this repo at the moment.

pkg/collector/adapters/config_to_probe_test.go Outdated Show resolved Hide resolved
@adriankostrubiak-tomtom adriankostrubiak-tomtom changed the title [Draft] Add liveness probe to created container if otelcol configuration supports a health_check. Add liveness probe to created container if otelcol configuration supports a health_check. Nov 25, 2021
@adriankostrubiak-tomtom adriankostrubiak-tomtom marked this pull request as ready for review November 25, 2021 13:04
Copy link
Member

@jpkrohling jpkrohling left a comment

Choose a reason for hiding this comment

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

Just a small nit about import format, but I'll merge it in the morning if you don't want to fix it for this PR.

pkg/collector/container.go Outdated Show resolved Hide resolved
@jpkrohling jpkrohling enabled auto-merge (squash) November 26, 2021 08:18
@jpkrohling jpkrohling merged commit f4d74d6 into open-telemetry:main Nov 26, 2021
shree007 pushed a commit to shree007/opentelemetry-operator that referenced this pull request Dec 12, 2021
…orts a health_check. (open-telemetry#574)

* Add liveness probe to created container if otelcol configuration supports a health_check.
Fixes open-telemetry#571

Signed-off-by: Adrian Kostrubiak <adrian.kostrubiak@tomtom.com>
ItielOlenick pushed a commit to ItielOlenick/opentelemetry-operator that referenced this pull request May 1, 2024
…orts a health_check. (open-telemetry#574)

* Add liveness probe to created container if otelcol configuration supports a health_check.
Fixes open-telemetry#571

Signed-off-by: Adrian Kostrubiak <adrian.kostrubiak@tomtom.com>
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 injection does not create container probers
2 participants