Skip to content

Commit 462d34e

Browse files
author
Tim Bannister
committed
Separate commands from output in Deployment concept
1 parent 9f4f076 commit 462d34e

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

content/en/docs/concepts/workloads/controllers/deployment.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -861,7 +861,12 @@ The output is similar to this:
861861
```
862862
Waiting for rollout to finish: 2 of 3 updated replicas are available...
863863
deployment.apps/nginx-deployment successfully rolled out
864-
$ echo $?
864+
```
865+
and the exit status from `kubectl rollout` is 0 (success):
866+
```shell
867+
echo $?
868+
```
869+
```
865870
0
866871
```
867872

@@ -1003,7 +1008,12 @@ The output is similar to this:
10031008
```
10041009
Waiting for rollout to finish: 2 out of 3 new replicas have been updated...
10051010
error: deployment "nginx" exceeded its progress deadline
1006-
$ echo $?
1011+
```
1012+
and the exit status from `kubectl rollout` is 1 (indicating an error):
1013+
```shell
1014+
echo $?
1015+
```
1016+
```
10071017
1
10081018
```
10091019

0 commit comments

Comments
 (0)