eclipse-che / che

Kubernetes based Cloud Development Environments for Enterprise Teams
http://eclipse.org/che
Eclipse Public License 2.0
6.99k stars 1.19k forks source link

Need the ability to prune unused workspaces after a configurable amount of time. #23250

Open cgruver opened 1 week ago

cgruver commented 1 week ago

Is your enhancement related to a problem? Please describe

Developers tend to keep old workspaces that have not been used in a while.

Over time the number of workspaces begins to add up, and can be counted in the thousands for a large developer population.

Workspaces that become stale run the risk of getting out of date with CVE patches, Dependency, and Tooling updates.

Keeping unused workspaces violates the pattern of treating workspaces as ephemeral environments that are created and destroyed as part of a short life-cycle. It can result in a bad habit of persisting data and configuration in the workspace instead of in the SCM.

Describe the solution you'd like

I would like a configuration in the CheCluster CR that allows me to specify a time period for a workspace to be considered stale because it has not been started within the giving period.

I would like an automated job to warn a developer of impending deletion of a workspace.

I would like an automated job to delete stale workspaces.

Describe alternatives you've considered

No response

Additional context

No response