mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-19 09:52:49 +00:00
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:
commit
740011927c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user