mirror of
https://github.com/helm/helm.git
synced 2026-05-28 04:35:48 -04:00
Merge pull request #8613 from tariq1890/if-optimise
optimise if condition in service ready logic
This commit is contained in:
commit
0941e3e345
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Reference in a new issue