kubectl: add --revision flag in rollout status

This commit is contained in:
Michail Kargakis
2016-10-10 13:07:38 +02:00
parent 5509e50db4
commit 75f30ec46f
6 changed files with 46 additions and 16 deletions

View File

@@ -2168,6 +2168,8 @@ __EOF__
kubectl rollout undo deployment nginx "${kube_flags[@]}"
# Check that the new replica set (nginx-618515232) has all old revisions stored in an annotation
kubectl get rs nginx-618515232 -o yaml | grep "deployment.kubernetes.io/revision-history: 1,3"
# Check that trying to watch the status of a superseded revision returns an error
! kubectl rollout status deployment/nginx --revision=3
# Clean up
kubectl delete deployment nginx "${kube_flags[@]}"