uselagoon / remote-controller

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

build pods not cleaned up #39

Closed smlx closed 3 years ago

smlx commented 3 years ago

The build-deploy controller currently doesn't clean up lagoon build pods, which leads to completed build pods hanging around for a long time in project namespaces.

Ideally there would be a policy to clean up build pods - maybe keep the last 3 only? or maybe last n failed and successful?

This doesn't need to be configurable right now, just the functionality with some default parameters.