Skip to content

Conversation

@rtribotte
Copy link
Member

What does this PR do?

This PR refactor changes from PR #8185.
It allows failing early if the server version cannot be fetched.

It also changes the return of the WatchAll method in case of error when fetching the server version, in which case, the event chan returned would be nil.
As per this modification, a change in the unit tests of the client allows setting a valid version in the fake client to avoid this error case.

Motivation

Re-introduce fixes that were lost during a rebase in PR #8185.

More

  • Added/updated tests
  • Added/updated documentation

Additional Notes

It is also more compliant with further changes on the Ingress provider on branch v2.5.

@rtribotte rtribotte added status/2-needs-review area/provider/k8s/ingress kind/bug/fix a bug fix bot/light-review decreases the number of required LGTM from 3 to 1. labels Jul 20, 2021
@rtribotte rtribotte added this to the 2.4 milestone Jul 20, 2021
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

@traefiker traefiker merged commit bc5e621 into traefik:v2.4 Jul 20, 2021
@traefiker traefiker removed bot/light-review decreases the number of required LGTM from 3 to 1. status/3-needs-merge labels Jul 20, 2021
@rtribotte rtribotte deleted the fix-kubernetes-ingress-get-version branch July 20, 2021 11:59
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.

4 participants