Skip to content

service: Clean up HealthCheckNodePort server when traffic policy changes #11952

Merged
borkmann merged 2 commits intomasterfrom
pr/gandro/fixup-healthchecknodeport
Jun 8, 2020
Merged

service: Clean up HealthCheckNodePort server when traffic policy changes #11952
borkmann merged 2 commits intomasterfrom
pr/gandro/fixup-healthchecknodeport

Conversation

@gandro
Copy link
Copy Markdown
Member

@gandro gandro commented Jun 8, 2020

This PR fixes a case where the HealthCheckNodePort service was not
removed properly anymore when a LoadBalancer service defintion was changed from
externalTrafficPolicy=Local to externalTrafficPolicy=Cluster. The unit
tests are extended to capture this behavior.

Fixes: f7b0378 ("service: Fix wrong localEndpoints count in HealthCheckNodePort")

gandro added 2 commits June 8, 2020 13:12
Signed-off-by: Sebastian Wicki <sebastian@isovalent.com>
This commit fixes a case where the HealthCheckNodePort service was not
removed properly anymore when a LoadBalancer service was changed from
externalTrafficPolicy=Local to externalTrafficPolicy=Cluster. The unit
tests are extended to capture this behavior.

Fixes: f7b0378 ("service: Fix wrong localEndpoints count in HealthCheckNodePort")

Signed-off-by: Sebastian Wicki <sebastian@isovalent.com>
@gandro gandro added area/k8s Impacts the kubernetes API, or kubernetes -> cilium internals translation layers. release-note/misc This PR makes changes that have no direct user impact. needs-backport/1.7 labels Jun 8, 2020
@gandro gandro requested a review from a team June 8, 2020 12:06
@gandro
Copy link
Copy Markdown
Member Author

gandro commented Jun 8, 2020

test-me-please

Comment thread pkg/service/service.go
@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.002%) to 37.004% when pulling b18b8e6 on pr/gandro/fixup-healthchecknodeport into 651a3a8 on master.

@maintainer-s-little-helper maintainer-s-little-helper Bot added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Jun 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/k8s Impacts the kubernetes API, or kubernetes -> cilium internals translation layers. ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/misc This PR makes changes that have no direct user impact.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants