uselagoon / remote-controller

A group of controllers for handling Lagoon builds and tasks in Kubernetes or Openshift
5 stars 1 forks source link

Feature: namespace cleanup job #170

Closed bomoko closed 2 years ago

bomoko commented 2 years ago

The following adds a cronjob that will, every 30 minutes (by default), check namespaces for the existence of a label lagoon.sh/expiration=<unixtimestamp> that will delete the namespace if the current time is > than the timestamp on the label.

This is to be used to clean up old namespaces automatically.

bomoko commented 2 years ago

I think this is good to go.