-
Notifications
You must be signed in to change notification settings - Fork 116
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
Verify status.loadBalancer when deploying a service of type LoadBalancer #547
Conversation
7b3f611
to
9220405
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.
Can you 🎩 and post the output. I'd like to make sure that reality matches the docs.
7891ac5
to
7552dc1
Compare
7552dc1
to
fc2b39c
Compare
fc2b39c
to
69fc36b
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
You can merge this PR as is, but ❤️ if you'd add an update to |
69fc36b
to
4eaae24
Compare
What are you trying to accomplish with this PR?
Fixes part of #543.
Make sure that we only declare a service of type
LoadBalancer
as deployed after its IP address is published (which is an asynchronous process in the case of most cloud providers).According to the documentation:
After being fully provisioned, this will show as something like this:
How is this accomplished?
I added an extra condition that will only run if the type of the Service is
LoadBalancer
; if that's the case, it will check for the presence ofstatus.loadBalancer.ingress.ip
to determine if the Service has been fully provisioned.What could go wrong?
It seems that testing this particular condition is not possible with
minikube
, as (specifically in that environment) the IP address is never published to the resource data and you need a special command to retrieve it.Live test