Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 4 commits into from
Sep 13, 2023

Conversation

shreddedbacon
Copy link
Member

@shreddedbacon shreddedbacon commented Aug 8, 2023

Checklist

  • Affected Issues have been mentioned in the Closing issues section
  • Documentation has been written/updated
  • PR title is ready for changelog and subsystem label(s) applied

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

@shreddedbacon shreddedbacon marked this pull request as ready for review September 4, 2023 22:44
@shreddedbacon shreddedbacon merged commit 8a3650f into main Sep 13, 2023
9 checks passed
@shreddedbacon shreddedbacon deleted the build-check-on-create branch September 13, 2023 05:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant