uselagoon / remote-controller

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

feat: when a new build comes in, check the namespace for running builds to determine state #224

Closed shreddedbacon closed 1 year ago

shreddedbacon commented 1 year ago

Checklist

As #223 describes, sometimes the kubernetes API can be unresponsive, we've typically only seen this an Azure clusters, and it prevents the controller from reconciling or updating builds properly.

This adds a function to the controller that now when a new build is received, it will check the namespace for running builds, and then attempt to determine if there is a pod associated to that running build or not and then attempt to update the resource and update Lagoon with the change.

Closing issues

closes #223 closes #160