Skip to content

Commit

Permalink
Add missing return statement to return if there is no ready pod left
Browse files Browse the repository at this point in the history
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
  • Loading branch information
buraksekili committed Oct 17, 2023
1 parent 8e3a749 commit bc62e6e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions readiness/readiness.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ func CheckIfRequiredDeploymentsAreReady() error {
}
}
}

if len(notReadyPods) == 0 {
return nil
}

fmt.Printf("The following pods have containers that are NOT ready: ")
for pod, _ := range notReadyPods {
fmt.Println(pod)
Expand Down

0 comments on commit bc62e6e

Please sign in to comment.