uselagoon / remote-controller

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

Support for multiple controllers in a cluster #13

Closed shreddedbacon closed 3 years ago

shreddedbacon commented 3 years ago

Being able to run multiple controllers so that each can talk to a different Lagoon is required

To support this, controllers should add Labels/Annotations and OwnerReferences to objects that it creates and watches, this would allow for multiple controllers to run without having to worry about builds or tasks from one controller being sent to a different Lagoon.

Additional to this is supporting a namespace prefix that would get added to all environments when they are created. Having namespace prefixes allows for two or more controllers to create namespaces without having to worry about clashing names. This already sort of exists in the controller, but would need to be refined/exposed as a flag/variable definition.