Skip to content

Commit e6f7240

Browse files
authored
Merge pull request #21717 from sftim/20200613_kubectl_rollout_sample_output_separate_from_command
Separate commands from output in Deployment concept
2 parents 01973ea + 462d34e commit e6f7240

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)