INNER CODE UNIT · Go
maxWaitForOK
openservicemesh/osm · ci/cmd/maestro.go:137
func maxWaitForOK() time.Duration {
maxWaitInt, err := strconv.ParseInt(maxOKWaitString, 10, 32)
if err != nil {
log.Fatal().Err(err).Msgf("Could not convert environment variable %s='%s' to int", maestro.WaitForOKSecondsEnvVar, maxOKWaitString)
}
return time.Duration(maxWaitInt) * time.Second
}
func getPodNames(kubeClient kubernetes.Interface) (string, string, string, string) {
var wg sync.WaitGroup
wg.Add(1)
go maestro.WaitForPodToBeReady(kubeClient, maxWaitForPod(), bookthiefNS, bookThiefSelector, &wg)
wg.Add(1)
go maestro.WaitForPodToBeReady(kubeClient, maxWaitForPod(), bookbuyerNS, bookBuyerSelector, &wg)
wg.Add(1)