In clusters where the Kubernetes API can have intermittent connectivity issues (noticed more in Azure environments that AWS) a build can become orphaned. This usually happens when the build controller is trying to update a build status and cannot make the API request because of connectivity issues. This looks to prevent the build status from being updated which causes subsequent builds to be queued indefinitely.
This usually manifests with build errors that look like:
##############################################
Start Build Process
##############################################
++ set +x
Unable to connect to the server: net/http: TLS handshake timeout
Describe the bug
In clusters where the Kubernetes API can have intermittent connectivity issues (noticed more in Azure environments that AWS) a build can become orphaned. This usually happens when the build controller is trying to update a build status and cannot make the API request because of connectivity issues. This looks to prevent the build status from being updated which causes subsequent builds to be queued indefinitely.
This usually manifests with build errors that look like:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A process exists that reaps orphaned builds.
Screenshots
Additional context