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

[receiver/podman] Add timeout config option #9014

Merged
merged 4 commits into from
Apr 7, 2022

Conversation

rogercoll
Copy link
Contributor

Description:
This PR adds a timeout configuration option for the Podman API requests. This can be helpful in cases where the provided endpoint is up but not responding (slow performance, not related endpoint, etc).
It removes the "ping" method call when creating the newPodmanClient to decouple the API availability with the client's constructor. Indeed, if the endpoint does not include the "/_ping" endpoint the client gets stuck waiting for a response.

Link to tracking Issue: #9013

Testing: File added for timeout tests: podman_client_test.go

Documentation: Updated README.md

@rogercoll rogercoll requested review from a team and mx-psi April 2, 2022 10:12
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.

3 participants