Separate commands from output in Deployment concept
This commit is contained in:
parent
9f4f076aea
commit
462d34ef75
|
@ -861,7 +861,12 @@ The output is similar to this:
|
||||||
```
|
```
|
||||||
Waiting for rollout to finish: 2 of 3 updated replicas are available...
|
Waiting for rollout to finish: 2 of 3 updated replicas are available...
|
||||||
deployment.apps/nginx-deployment successfully rolled out
|
deployment.apps/nginx-deployment successfully rolled out
|
||||||
$ echo $?
|
```
|
||||||
|
and the exit status from `kubectl rollout` is 0 (success):
|
||||||
|
```shell
|
||||||
|
echo $?
|
||||||
|
```
|
||||||
|
```
|
||||||
0
|
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...
|
Waiting for rollout to finish: 2 out of 3 new replicas have been updated...
|
||||||
error: deployment "nginx" exceeded its progress deadline
|
error: deployment "nginx" exceeded its progress deadline
|
||||||
$ echo $?
|
```
|
||||||
|
and the exit status from `kubectl rollout` is 1 (indicating an error):
|
||||||
|
```shell
|
||||||
|
echo $?
|
||||||
|
```
|
||||||
|
```
|
||||||
1
|
1
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue