headlamp-k8s / headlamp

A Kubernetes web UI that is fully-featured, user-friendly and extensible
https://headlamp.dev
Apache License 2.0
2.22k stars 156 forks source link

[RFE] Add a button to restart a deployment #704

Closed bencooper222 closed 1 year ago

bencooper222 commented 2 years ago

Current situation

This is what the buttons on the Deployment page currently look like.

image

Impact

This would bring Headlamp closer to parity with Lens. It's also a fairly basic feature that teams managing Kubernetes' services need as a first thing to try when encountering an issue.

Ideal future situation

I would like there to be a button to the left of the buttons in the above picture that restarts the deployment.

The second from the left button in the below picture in Lens does that.

image

Implementation options

Should be a simple button on the frontend and a straightforward call to the "patch deployment" API to change the kubectl.kubernetes.io/restartedAt field (i.e. this) on the backend.

Additional information

If I wrote this PR, would it be accepted?

joaquimrocha commented 2 years ago

Hi @bencooper222 ! Sorry for the delay in the reply. This is a good idea indeed. If you want to submit a patch, you are very welcome to do so. If you don't have the time, we'll pick it up from here, but this feature is indeed something we want to have.

Also, if you have other things you'd like to see in Headlamp, let us know. We cannot promise to take them all in as we try to make it broad enough for most people, but it's worth knowing what users want.

joaquimrocha commented 2 years ago

Hi @bencooper222 . Do you want to work on this feature? (just planning things here, so let me know if we should assign this to you)

bencooper222 commented 2 years ago

You can assign it to me but I likely won't get to it till November. Lmk!

joaquimrocha commented 1 year ago

This is done now.