Skip to content

Conversation

@coufalja
Copy link
Contributor

@coufalja coufalja commented May 26, 2021

What does this PR do?

Fixes an incorrect behaviour when the Endpoints generated for Service pods contain two distinct subsets for two different ports.

Motivation

The bug had broken down one of our production services for a while and we had to revert to Traefik 1.7.
The bug caused some (third in our case) of HTTP requests to be forwarded to pods that hadn't had the port exposed.

More

  • Added/updated tests
  • Added/updated documentation

Additional Notes

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I guess that this was a mere oversight, by declaring the variable before the cycle its value remained unchanged in subsequent cycles thus (incorrectly) falling through the if port == 0 guard.

Copy link
Collaborator

@jbdoumenjou jbdoumenjou left a comment

Choose a reason for hiding this comment

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

LGTM 👍

Copy link
Member

@rtribotte rtribotte left a comment

Choose a reason for hiding this comment

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

Thanks 👍

Copy link
Contributor

@ldez ldez left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants