-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Wait for load balancer to be ready for Hetzner #14057
Wait for load balancer to be ready for Hetzner #14057
Conversation
bd8f97e
to
9829f6c
Compare
if err != nil { | ||
if err != nil { |
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.
Looks look an extra check of err != nil
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.
Fixed this now, to make it easy to cherry-pick.
} | ||
} | ||
_, errCh := actionClient.WatchProgress(ctx, action) | ||
if err := <-errCh; err != nil { |
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.
Nit: we might want a helper here that calls WatchProgress, but also has a timer, so that we log e.g. every minute that we're waiting for something, rather than potentially silently waiting forever.
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.
Good idea. Thanks!
Two thoughts, but lgtm. /approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: justinsb The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
9829f6c
to
271ce33
Compare
/lgtm |
FindAddresses()
may run before the public addresses are allocated and the Kubernetes API certificate will not work.