Skip to content

Commit 56c002b

Browse files
committed
controller: do not wait if component is always healthy and Ready
1 parent 2bea33f commit 56c002b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

controller/dependency.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,10 @@ func (c *Controller) waitForComponentHealth(componentName string) error {
158158
log.Printf("waitForComponentHealth: reconcile attempt for %s returned error: %v", componentName, err)
159159
// don't return here; keep waiting until timeout to allow retries
160160
}
161+
if component.Status.Ready {
162+
log.Printf("Component %s is healthy", componentName)
163+
return nil
164+
}
161165
log.Printf("Component %s not healthy yet (state: %s)", componentName, component.Status.ObservedState)
162166
}
163167
}

0 commit comments

Comments
 (0)