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

VSS/instant-updates: more stable event watcher #898

Merged
merged 7 commits into from
Sep 21, 2024

Conversation

tvoran
Copy link
Member

@tvoran tvoran commented Aug 27, 2024

Pass a dereferenced VSS object to the vault event watcher goroutine to avoid the EventWatcherStarted k8s event being emitted without a name or namespace. Also wait for the EventWatcherStarted k8s event before proceeding with the instant updates tests, to ensure the Vault event subscription is setup before the tests proceed with modifying Vault.

Disclaimer: I'm not totally sure why passing a dereferenced VSS object seems to fix the issue. I thought maybe it was something to do with garbage collection, but I haven't been able to confirm that suspicion.

Pass a dereferenced VSS object to the vault event watcher goroutine to
avoid the effect of the VSS object being garbage collected before the
goroutine is started/evaluated
@tvoran tvoran marked this pull request as ready for review August 27, 2024 18:44
@tvoran tvoran requested a review from a team as a code owner August 27, 2024 18:44
@tvoran tvoran added this to the v0.9.0 milestone Sep 3, 2024
Copy link
Contributor

@thyton thyton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tvoran
Copy link
Member Author

tvoran commented Sep 21, 2024

Thanks!

@tvoran tvoran merged commit 8f82498 into main Sep 21, 2024
43 checks passed
@tvoran tvoran deleted the VAULT-28747/vss-stable-event-watcher branch September 21, 2024 00:36
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.

2 participants