dashboard icon indicating copy to clipboard operation
dashboard copied to clipboard

Support rolling back Deployments to previous revisions

Open timoreimann opened this issue 6 years ago • 8 comments

Environment
Dashboard version: 1.8.0
Kubernetes version: v1.8.7-gke.1
Operating system: 
Node.js version:
Go version:
Steps to reproduce

Try to roll back a Deployment to a previous revision (i.e., what kubectl rollout undo does).

Observed result

No such UI interaction is available.

Expected result

A UI element is available that allows me to select from a list of recent revisions and roll back to any of them.

Motivation

Rolling back to a previous release is a fairly important operation as it allows to remedy critical situations quickly. While the functionality is accessible in kubectl as well, I find an integration into the Dashboard very desirable given that it's easier to use, especially for users that are not that familiar with kubectl.

Comments

I asked for the availability of this feature some time ago on Slack and got the response that it's worthwhile creating an issue. So I'm doing this now. :-)

timoreimann avatar Mar 12 '18 14:03 timoreimann

Issues go stale after 90d of inactivity. Mark the issue as fresh with /remove-lifecycle stale. Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta. /lifecycle stale

fejta-bot avatar Jun 12 '18 13:06 fejta-bot

This issue still seems pretty relevant -- unstaling.

/remove-lifecycle stale

timoreimann avatar Jun 13 '18 19:06 timoreimann

Issues go stale after 90d of inactivity. Mark the issue as fresh with /remove-lifecycle stale. Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta. /lifecycle stale

fejta-bot avatar Sep 11 '18 19:09 fejta-bot

/lifecycle frozen

maciaszczykm avatar Sep 12 '18 19:09 maciaszczykm

Ref: #4542

shu-mutou avatar Feb 17 '21 06:02 shu-mutou

Is the rolling back function currently supported on the dashboard page?

huweihuang avatar Jun 08 '23 03:06 huweihuang

No, it's not supported yet.

shu-mutou avatar Jun 08 '23 07:06 shu-mutou

This is a function that kubectl implements by adding its own annotations, and it is necessary to maintain data structures that are not directly supported by the K8s API. In Dashboard, we are considering how to handle data that extends the K8s API, and the implementation has stopped.

shu-mutou avatar Jun 08 '23 07:06 shu-mutou