forked from knative/client
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(service create): Wait for a service to be ready when its created
* By default wait for a service to be in condition "Ready" * Use "--async" for returning immediately (which is the current behaviour) * --wait-timeout to specify how long to wait for Ready condition (in seconds, default: 60s) * In sync mode, print out the service URL as a last line (so that it can be used together with `tail -1`) to extract the service URL after the service is created. * Refactored service create code to use smaller methods which are easier to understand Current tests has been adapted to work with async behaviour but no new tests has been added for the new sync mode. This is coming in a second commit (and put into an extra test file). Fixes knative#54
- Loading branch information
Showing
3 changed files
with
193 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.