uselagoon / remote-controller

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

Use deployment instead of pods to detect services in the namespace #202

Closed shreddedbacon closed 1 year ago

shreddedbacon commented 1 year ago

In the remote controller we check the services by listing pods, we should use the deployments to collect this information instead

Using pods can result in the services not matching the environment if the cli pod or nginx/php pods are scaled to 0 when the environment is triggered.

https://github.com/uselagoon/remote-controller/blob/main/controllers/v1beta1/podmonitor_buildhandlers.go#L269-L286