feat(agent token): lock token creation for concurrent plugin calls
Description
- feat(agent token): lock token creation for concurrent plugin calls
This change set introduces a file-based mutex to protect creating
multiple tokens at the same time. This would otherwise happen for calls
like kubectl get pods -A which would concurrently invoke multiple
credential plugin instances (for whatever reason).
Related Issues
Resolves #[issue_number]
How has this been tested?
Screenshots (if appropriate):
Types of changes
-
Bug fix (non-breaking change which fixes an issue) -
New feature (non-breaking change which adds functionality) -
Breaking change (fix or feature that would cause existing functionality to change) -
Documentation -
Chore (Related to CI or Packaging to platforms) -
Test gap
Edited by Timo Furrer