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

Properly clean service account tokens in NodeUnpublishVolume #277

Merged
merged 2 commits into from
Oct 17, 2024

Conversation

unexge
Copy link
Contributor

@unexge unexge commented Oct 16, 2024

  • Cleanup tokens after unmounting Mountpoint. Mountpoint might still need to perform some S3 calls during shutdown and cleaning the token before unmount might cause those operations to fail.
  • Add test to ensure tokens are cleaned up on NodeUnpublishVolume. There was a typo in if err != nil { check, which was skipping the cleanup if err was nil, it's been fixed as well.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Cleaning service account tokens eagerly might cause Mountpoint process
to fail to perform some operations during the shutdown.

Signed-off-by: Burak Varlı <[email protected]>
@unexge unexge requested a review from muddyfish October 16, 2024 13:26
@unexge unexge merged commit 5439022 into main Oct 17, 2024
17 checks passed
@unexge unexge deleted the unexge/clean-tokens-in-node-unpublish-volume branch October 17, 2024 15:31
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