File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
content/en/docs/concepts/workloads/controllers Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -861,7 +861,12 @@ The output is similar to this:
861
861
` ` `
862
862
Waiting for rollout to finish: 2 of 3 updated replicas are available...
863
863
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
+ ` ` `
865
870
0
866
871
` ` `
867
872
@@ -1003,7 +1008,12 @@ The output is similar to this:
1003
1008
` ` `
1004
1009
Waiting for rollout to finish: 2 out of 3 new replicas have been updated...
1005
1010
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
+ ` ` `
1007
1017
1
1008
1018
` ` `
1009
1019
You can’t perform that action at this time.
0 commit comments