Skip to content

Commit

Permalink
Break out of loop if ready
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrieljackson committed Oct 25, 2019
1 parent de84aa2 commit b293e02
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/controller/clusterinstallation/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ func (r *ReconcileClusterInstallation) checkClusterInstallation(name, imageName,
if condition.Type == corev1.PodReady {
if condition.Status == corev1.ConditionTrue {
podIsReady = true
break
} else {
return status, fmt.Errorf("mattermost pod %s is not ready", pod.Name)
}
Expand Down

0 comments on commit b293e02

Please sign in to comment.