INNER CODE UNIT · Go
maxWaitForPod
openservicemesh/osm · ci/cmd/maestro.go:129
func maxWaitForPod() time.Duration {
maxWaitInt, err := strconv.ParseInt(maxPodWaitString, 10, 32)
if err != nil {
log.Fatal().Err(err).Msgf("Could not convert environment variable %s='%s' to int", maestro.WaitForPodTimeSecondsEnvVar, maxPodWaitString)
}
return time.Duration(maxWaitInt) * time.Second
}
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