Merge pull request #112504 from pohly/e2e-wait-service-account

e2e framework: better error when service account creation times out
This commit is contained in:
Kubernetes Prow Robot 2022-09-16 06:31:28 -07:00 committed by GitHub
commit 740011927c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -328,7 +328,10 @@ func waitForServiceAccountInNamespace(c clientset.Interface, ns, serviceAccountN
}
return false, nil
})
return err
if err != nil {
return fmt.Errorf("wait for service account %q in namespace %q: %w", serviceAccountName, ns, err)
}
return nil
}
// WaitForDefaultServiceAccountInNamespace waits for the default service account to be provisioned