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

Backport of proxy-lifecycle: add HTTP Server with endpoints for proxy lifecycle shutdown into release/1.0.x #182

Merged
merged 3 commits into from
Jun 27, 2023

Conversation

curtbushko
Copy link
Contributor

@curtbushko curtbushko commented Jun 27, 2023

…hutdown (#115)

* envoy: set drain time and strategy passthrough config with sensible defaults for sidecar proxy shutdown lifecycle

* pkg/consuldp/lifecycle: wire up lifecycle mgmt server into consul-dataplane main config

* pkg/envoy: add Drain and Quit methods, rename Stop to Kill

* pkg/consuldp/lifecycle: gracefully shutdown Envoy if xDS or lifecycle mgmt server exits unexpectedly

* ci: disable parallelism in unit tests to avoid port conflicts

* pkg/envoy: add http client to dial Envoy admin interface

* pkg/consuldp/lifecycle: replace http client with proxy manager interface and mock

* test/lifecycle: pick an available port if gracefulPort is unspecified

* pkg/consuldp/lifecycle: check errors and close errorExitCh if any problems gracefully shutting down Envoy

* add changelong

---------

Co-authored-by: Nathan Coleman <[email protected]>
Co-authored-by: Paul Glass <[email protected]>
@curtbushko curtbushko self-assigned this Jun 27, 2023
@curtbushko curtbushko requested a review from wilkermichael June 27, 2023 15:44
@curtbushko curtbushko marked this pull request as ready for review June 27, 2023 15:45
@curtbushko curtbushko requested a review from a team as a code owner June 27, 2023 15:45
@curtbushko curtbushko changed the title proxy-lifecycle: add HTTP Server with endpoints for proxy lifecycle s… Backport of proxy-lifecycle: add HTTP Server with endpoints for proxy lifecycle shutdown into release/1.0.x Jun 27, 2023
@curtbushko curtbushko merged commit 37878d6 into release/1.0.x Jun 27, 2023
@curtbushko curtbushko deleted the backport/proxy-lifecycle-http-endpoints branch June 27, 2023 17:05
wilkermichael pushed a commit that referenced this pull request Jun 28, 2023
… lifecycle shutdown into release/1.0.x (#182)

* proxy-lifecycle: add HTTP Server with endpoints for proxy lifecycle shutdown (#115)

* envoy: set drain time and strategy passthrough config with sensible defaults for sidecar proxy shutdown lifecycle

* pkg/consuldp/lifecycle: wire up lifecycle mgmt server into consul-dataplane main config

* pkg/envoy: add Drain and Quit methods, rename Stop to Kill

* pkg/consuldp/lifecycle: gracefully shutdown Envoy if xDS or lifecycle mgmt server exits unexpectedly

* ci: disable parallelism in unit tests to avoid port conflicts

* pkg/envoy: add http client to dial Envoy admin interface

* pkg/consuldp/lifecycle: replace http client with proxy manager interface and mock

* test/lifecycle: pick an available port if gracefulPort is unspecified

* pkg/consuldp/lifecycle: check errors and close errorExitCh if any problems gracefully shutting down Envoy

* add changelong

---------

Co-authored-by: Nathan Coleman <[email protected]>
Co-authored-by: Paul Glass <[email protected]>

* fix automation

* fix unit tests

---------

Co-authored-by: Mike Morris <[email protected]>
Co-authored-by: Nathan Coleman <[email protected]>
Co-authored-by: Paul Glass <[email protected]>
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