We are using Openshift Online Pro.
I am wanting to document / script how to review openshift deployment revisions on the commandline to facilitate rolling back to specific revisions. On the Web Console there is a "History" tab for the deployment that shows the revision number and how long ago it was actioned:
https://www.dropbox.com/s/12z4gmuqdzlnurg/File%2005-03-2018%2C%2007%2048%2053.jpeg?dl=0
If I used the command line oc get dc/backend
it only shows the current revision.
Is there a way on the commandine to get deployment history data to make it easy to script a rollback tool that goes back to specific revisions?
(Note: I am aware that oc rollback backend
will rollback the previous version but in testing there are corner cases where that won't help and we would need to skip back two or more versions.)