Merge pull request #21717 from sftim/20200613_kubectl_rollout_sample_output_separate_from_command

Separate commands from output in Deployment concept
pull/21936/head
Kubernetes Prow Robot 2020-06-19 22:46:39 -07:00 committed by GitHub
commit e6f724063a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 2 deletions

View File

@ -861,7 +861,12 @@ The output is similar to this:
```
Waiting for rollout to finish: 2 of 3 updated replicas are available...
deployment.apps/nginx-deployment successfully rolled out
$ echo $?
```
and the exit status from `kubectl rollout` is 0 (success):
```shell
echo $?
```
```
0
```
@ -1003,7 +1008,12 @@ The output is similar to this:
```
Waiting for rollout to finish: 2 out of 3 new replicas have been updated...
error: deployment "nginx" exceeded its progress deadline
$ echo $?
```
and the exit status from `kubectl rollout` is 1 (indicating an error):
```shell
echo $?
```
```
1
```