Commit 4754a6ae authored by Jordan Liggitt's avatar Jordan Liggitt

Wait for default serviceaccount in e2e createTestingNS

parent 710df2b6
...@@ -311,7 +311,13 @@ func createTestingNS(baseName string, c *client.Client) (*api.Namespace, error) ...@@ -311,7 +311,13 @@ func createTestingNS(baseName string, c *client.Client) (*api.Namespace, error)
Status: api.NamespaceStatus{}, Status: api.NamespaceStatus{},
} }
_, err := c.Namespaces().Create(namespaceObj) _, 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 { func waitForPodRunningInNamespace(c *client.Client, podName string, namespace string) error {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment