Fix #1329: Add wait flag to wait for project to be ready. (#1367)

* Fix #1329: Add wait flag to wait for project to be ready.

* Watch for projects instead of Namespaces.

* Add e2e test for project creation and wait.
This commit is contained in:
Chris Laprun
2019-02-27 14:23:45 +01:00
committed by GitHub
parent b59f9ce64f
commit 88f0d05e69
4 changed files with 87 additions and 12 deletions

View File

@@ -46,8 +46,8 @@ func SetCurrent(client *occlient.Client, projectName string) error {
return nil
}
func Create(client *occlient.Client, projectName string) error {
err := client.CreateNewProject(projectName)
func Create(client *occlient.Client, projectName string, wait bool) error {
err := client.CreateNewProject(projectName, wait)
if err != nil {
return errors.Wrap(err, "unable to create new project")
}