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

[WIP] Fix race condition between service account availability and webhook invocation #1

Closed
wants to merge 1 commit into from

Conversation

roehrijn
Copy link

@roehrijn roehrijn commented Aug 13, 2024

In aws#174 a race condition is mentioned, where the webhook tries to mutate a Pod having a service account reference which is not yet populated to the ServiceAccountCache. This results in the pod being not mutated.

In our scenario this is a matter of a few milliseconds before the cache is properly populated.

As an alternative to aws#178, this PR tries to fix this by waiting for a certain amount of time for proper ServiceAccountCache population and being notified upon population.

Jan Roehrich [email protected], Mercedes-Benz Tech Innovation GmbH, legal info/Impressum

@roehrijn roehrijn force-pushed the roehrijn/fix-with-notification branch from 37ac32f to 91754ec Compare August 13, 2024 20:22
@roehrijn roehrijn force-pushed the roehrijn/fix-with-notification branch from 91754ec to 79fcca1 Compare August 13, 2024 20:40
@roehrijn roehrijn closed this Aug 13, 2024
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.

1 participant