mirror of
https://github.com/redhat-developer/odo.git
synced 2025-10-19 03:06:19 +03:00
* 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:
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user