Commit 185fb4f4 authored by Taylor Thomas's avatar Taylor Thomas

fix(tiller): Fixes problem with `--wait` on headless Services

Headless services (with `clusterIP` set to `None`) were reporting
as not being ready because they didn't have an IP address. This adds
a logic check to ignore those services.
parent 79e2fb83
......@@ -520,7 +520,8 @@ func podsReady(pods []api.Pod) bool {
func servicesReady(svc []api.Service) bool {
for _, s := range svc {
if !api.IsServiceIPSet(&s) {
// Make sure the service is not explicitly set to "None" before checking the IP
if s.Spec.ClusterIP != api.ClusterIPNone && !api.IsServiceIPSet(&s) {
return false
}
// This checks if the service has a LoadBalancer and that balancer has an Ingress defined
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment