Merge pull request #8613 from tariq1890/if-optimise

optimise if condition in service ready logic
pull/8629/head
Matthew Fisher 4 years ago committed by GitHub
commit 0941e3e345
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -188,8 +188,8 @@ func (w *waiter) serviceReady(s *corev1.Service) bool {
return true
}
// Make sure the service is not explicitly set to "None" before checking the IP
if s.Spec.ClusterIP != corev1.ClusterIPNone && s.Spec.ClusterIP == "" {
// Ensure that the service cluster IP is not empty
if s.Spec.ClusterIP == "" {
w.log("Service does not have cluster IP address: %s/%s", s.GetNamespace(), s.GetName())
return false
}

Loading…
Cancel
Save