mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-05 18:24:07 +00:00
Merge pull request #9322 from liggitt/e2e_service_account_wait
Wait for default serviceaccount in e2e createTestingNS
This commit is contained in:
commit
4b84782e64
@ -331,7 +331,13 @@ func createTestingNS(baseName string, c *client.Client) (*api.Namespace, error)
|
||||
Status: api.NamespaceStatus{},
|
||||
}
|
||||
_, err := c.Namespaces().Create(namespaceObj)
|
||||
return namespaceObj, err
|
||||
if err != nil {
|
||||
return namespaceObj, err
|
||||
}
|
||||
if err := waitForDefaultServiceAccountInNamespace(c, namespaceObj.Name); err != nil {
|
||||
return namespaceObj, err
|
||||
}
|
||||
return namespaceObj, nil
|
||||
}
|
||||
|
||||
func waitForPodRunningInNamespace(c *client.Client, podName string, namespace string) error {
|
||||
|
Loading…
Reference in New Issue
Block a user