Look for failed pods on the setup job
@@ -63,6 +63,7 @@ func manageSetup(c client.Client, s *runtime.Scheme, trial *okeanosv1alpha1.Tria
break
}
}
+ break // All containers have the same environment
}
}
@@ -117,6 +118,9 @@ func isJobFinished(job *batchv1.Job) bool {
return true
}
}
+ if job.Status.Failed > 0 {
+ return true
+ }
return false
}
