-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Don't reload configuration when rancher server is down #2706
Don't reload configuration when rancher server is down #2706
Conversation
@wacken89 Happy to see your first Go PR 🎉 Could you fix those issues:
|
provider/rancher/api.go
Outdated
checkRancherApi, rancherErrApi := rancherClient.ApiKey.List(withoutPagination) | ||
|
||
if rancherErrApi != nil { | ||
log.Errorf("Cannot establish connection: %+v, rancher API return: %+v;\nSkipping refresh Data from Provider API", rancherErrApi, checkRancherApi) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you remove the \n
and add a .
at the end of the sentence.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
provider/rancher/api.go
Outdated
checkRancherApi, rancherErrApi := rancherClient.ApiKey.List(withoutPagination) | ||
|
||
if rancherErrApi != nil { | ||
log.Errorf("Cannot establish connection: %+v, rancher API return: %+v;\nSkipping refresh Data from Provider API", rancherErrApi, checkRancherApi) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
@wacken89 Could you rebase ? (The CI failed due to a fixed pb with one test.) |
26b63f1
to
bad9724
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @wacken89 ,
thanks for your PR :-)
Thanks that you found a way to reuse the old client. Looks way better ;)
LGTM 👼
54560f4
to
58b5a1c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
58b5a1c
to
aa733d7
Compare
What does this PR do?
Doesn't reload Traefik configuration when Rancher sever is down
Motivation
We using Traefik in production, it critical for us if Rancher server is down and traefik does not proxying requests
Fixes #2284