uselagoon / remote-controller

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

fix: check the build resource is present #217

Closed shreddedbacon closed 1 year ago

shreddedbacon commented 1 year ago

Checklist

When cancelling a build where the build resource doesn't exist, a nil pointer reference error is encountered. This checks the build exists before trying to access the resources.