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

Use informer index instead of listing service EndpointSlices directly #4409

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dqsully
Copy link

@dqsully dqsully commented Oct 30, 2024

Changes proposed in this PR

  • Use existing Informer cache for EndpointSlices instead of listing EndpointSlices directly from k8s.

We had a production issue where Kubernetes spuriously returned 1 of 5 EndpointSlices to a list request during k8s control-plane maintenance, causing a partial outage for that service until we could restart consul-k8s. Arguably k8s returning an incomplete list response is the bigger issue, but this PR will help make consul-k8s more resilient to k8s control-plane instability.

How I've tested this PR

Ran unit tests, ran end-to-end test in a sandbox Kubernetes cluster.

How I expect reviewers to test this PR

Run unit and end-to-end tests

Checklist

Copy link

hashicorp-cla-app bot commented Oct 30, 2024

CLA assistant check
All committers have signed the CLA.

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.

1 participant