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.
release-2.2
Taylor Thomas 9 years ago committed by Matt Butcher
parent 15efd568b2
commit 34c3cd8950
No known key found for this signature in database
GPG Key ID: DCD5F5E5EF32C345

@ -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

Loading…
Cancel
Save