feat(imds): add IMDS client wrapper with 20 TPS rate limiter - #170
Merged
gargipanatula merged 1 commit intoSep 9, 2026
Merged
gargipanatula merged 1 commit into
gargipanatula merged 1 commit into
Conversation
kmala
approved these changes
Sep 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note - originally approved by a-cool-train@ and DanielCKennedy@ here but we are doing fresh PRs to merge into main. There are no changes from that PR.
Adds an IMDS delegate, similar to the EKS Auth delegate in that it fetches credentials from a source via
GetIamCredentials. The delegate:iam-eks-N(N for an indeterminate amount of namespaces)/latest/meta-dataand filtering foriam-eksprefixpodUID -> namespacefor easy lookup during retrievalThis delegate isn't referenced by the handler yet, so there's no runtime behavior change.
Testing:
make buildandmake testgreenSome new tests to highlight:
TestNamespaceMapping_BuildTestNamespaceMapping_BackgroundRefresh_UpdatesMap+TestNamespaceMapping_Stop_HaltsRefresh