Skip to content

Conversation

@lockwobr
Copy link
Collaborator

@lockwobr lockwobr commented Mar 25, 2025

When creating pods there was a race condition between checking if it exists and creating it. Because of how we consume reconcile requests the controller can have races. A better long term fix would to to have more then one controller, but is a larger endeavor at this point.

The fix for this is to make sure the pod names are unique so creating the pod will fail after the first. To do they we are adding a hash of the name+nodeName.

@lockwobr lockwobr self-assigned this Mar 25, 2025
@lockwobr lockwobr merged commit e460a65 into main Mar 26, 2025
4 checks passed
@lockwobr lockwobr deleted the pod-create-race-bug branch March 26, 2025 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants