mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 19:01:49 +00:00
e2e framework: better error when service account creation times out
When waiting for the default service account in a new namespace, not finding one was reported as "unexpected error: timed out waiting for the condition"...
This commit is contained in:
parent
178f246bbc
commit
efc172f4bf
@ -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