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

Improve debug HTTP server usage #281

Merged
merged 1 commit into from
Jan 27, 2020
Merged

Conversation

timoreimann
Copy link
Contributor

  • Rename the -address parameter to -debug-addr.
  • Only start the HTTP server on the Controller service: the Node service does not have a token configured and thus would never be able to respond successfully to a request.
  • Only start the debug server if -debug-addr is given, ensuring that existing users won't be surprised by the new functionality. This also allows us to test a dev version of the CSI plugin on a cluster where the port might already be used.
  • Remove explicit HTTP listener which is encapsulated by HTTP server.
  • Bound graceful HTTP server shutdown by 10 seconds.

@timoreimann
Copy link
Contributor Author

This change is needed to unblock other pending PRs.

- Rename the -address parameter to -debug-addr.
- Only start the HTTP server on the Controller service: the Node service
  does not have a token configured and thus would never be able to
  respond successfully to a request.
- Only start the debug server if -debug-addr is given, ensuring that
  existing users won't be surprised by the new functionality. This also
  allows us to test a dev version of the CSI plugin on a cluster where
  the port might already be used.
- Remove explicit HTTP listener which is encapsulated by HTTP server.
- Bound graceful HTTP server shutdown by 10 seconds.
@timoreimann timoreimann force-pushed the improve-debug-http-server-usage branch from b6f43e1 to 1f8e119 Compare January 26, 2020 22:36
Copy link
Contributor

@adamwg adamwg left a comment

Choose a reason for hiding this comment

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

lgtm.

@timoreimann timoreimann merged commit ed97efb into master Jan 27, 2020
@timoreimann timoreimann deleted the improve-debug-http-server-usage branch January 27, 2020 18:46
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