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

Support upgrades for connect refactor #509

Merged
merged 6 commits into from
May 10, 2021
Merged

Support upgrades for connect refactor #509

merged 6 commits into from
May 10, 2021

Commits on May 10, 2021

  1. Support upgrades for connect refactor

    Before the connect refactor, service registration in Consul was managed
    by the lifecycle sidecar, which would re-register the service with
    Consul every 10s. Now, service registration is managed by Endpoints
    controller.
    
    In order to support upgrades to the refactored Endpoints controller, we
    need Endpoints controller to NOT register or deregister any services
    managed by lifecycle sidecar. To do this, the annotation consul.hashicorp.com/connect-inject-managed-by
    is added to pods managed by endpoints controller, so endpoints
    controller will ignore older services managed by lifecycle sidecar
    (legacy services) for service registration/deregistration.
    
    To support health checks for legacy services, the Endpoints controller
    will always update the healthcheck for any pod, whether it's managed by
    Endpoints controller or not.
    ndhanushkodi committed May 10, 2021
    Configuration menu
    Copy the full SHA
    fc5cd1f View commit details
    Browse the repository at this point in the history
  2. Proxy health check registration doesn't need to be separate

    Legacy services have the proxy healthcheck coupled to the service
    registration, so that can remain in endpoints controller as well.
    ndhanushkodi committed May 10, 2021
    Configuration menu
    Copy the full SHA
    e3e6e59 View commit details
    Browse the repository at this point in the history
  3. Cleanup

    ndhanushkodi committed May 10, 2021
    Configuration menu
    Copy the full SHA
    ecfde64 View commit details
    Browse the repository at this point in the history
  4. Update changelog

    ndhanushkodi committed May 10, 2021
    Configuration menu
    Copy the full SHA
    5d95b23 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    93526bd View commit details
    Browse the repository at this point in the history
  6. Cleanups from review

    ndhanushkodi committed May 10, 2021
    Configuration menu
    Copy the full SHA
    5aa7d0f View commit details
    Browse the repository at this point in the history