uselagoon / remote-controller

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

Remove robot account when deleting an environment #60

Closed shreddedbacon closed 1 year ago

shreddedbacon commented 3 years ago

When removing an environment with a regional Harbor, make sure to clean up the robot account if possible.

shreddedbacon commented 2 years ago

134 added support for clearing up old repositories when an environment/namespace is deleted, this could be extended to purge robot accounts

shreddedbacon commented 2 years ago

with #150 we can handle this better

shreddedbacon commented 1 year ago

It should be able to be overridden by labels on the namespace so that in the event of migrations when the old namespace is cleaned up, it doesn't remove the repositories, or the robot account.

something like this perhaps?

harbor.lagoon.sh/cleanup-repositories: false
harbor.lagoon.sh/cleanup-robotaccount: false