Fix output of 'kubectl rollout status'
If running 'kubectl rollout status' command, the output is like: deployment "nginx-deployment" successfully rolled out The corresponding kubectl code also shows it according to https://github.com/kubernetes/kubectl/blob/e95e378e5972064b177a8e71eac2803f55c8c5df/pkg/polymorphichelpers/rollout_status.go#L89
This commit is contained in:
@@ -102,7 +102,7 @@ Follow the steps given below to create the above Deployment:
|
|||||||
The output is similar to:
|
The output is similar to:
|
||||||
```
|
```
|
||||||
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...
|
||||||
deployment.apps/nginx-deployment successfully rolled out
|
deployment "nginx-deployment" successfully rolled out
|
||||||
```
|
```
|
||||||
|
|
||||||
4. Run the `kubectl get deployments` again a few seconds later.
|
4. Run the `kubectl get deployments` again a few seconds later.
|
||||||
@@ -205,7 +205,7 @@ Follow the steps given below to update your Deployment:
|
|||||||
```
|
```
|
||||||
or
|
or
|
||||||
```
|
```
|
||||||
deployment.apps/nginx-deployment successfully rolled out
|
deployment "nginx-deployment" successfully rolled out
|
||||||
```
|
```
|
||||||
|
|
||||||
Get more details on your updated Deployment:
|
Get more details on your updated Deployment:
|
||||||
@@ -857,7 +857,7 @@ kubectl rollout status deployment.v1.apps/nginx-deployment
|
|||||||
The output is similar to this:
|
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 "nginx-deployment" successfully rolled out
|
||||||
```
|
```
|
||||||
and the exit status from `kubectl rollout` is 0 (success):
|
and the exit status from `kubectl rollout` is 0 (success):
|
||||||
```shell
|
```shell
|
||||||
|
|||||||
Reference in New Issue
Block a user