Skip to content

vault: add retries to read-only calls#1354

Open
gmichelo wants to merge 1 commit into
mainfrom
giulio/vault-retries
Open

vault: add retries to read-only calls#1354
gmichelo wants to merge 1 commit into
mainfrom
giulio/vault-retries

Conversation

@gmichelo

Copy link
Copy Markdown
Contributor

No description provided.

@gmichelo gmichelo requested a review from edganiukov November 20, 2024 20:30

@edganiukov edganiukov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm

if !found {
return nil, fnerrors.BadInputError("invalid vault secret package: expects secret package in format '<mount>/<path>'")
}
vaultClient, err := login(ctx, vaultConfig)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

you wrap login call in this function, but not here - https://github.com/namespacelabs/foundation/pull/1354/files#diff-75ea27d66aada54407e9691a93b5e48da8ea56c29a6ae2f852da1bc38102bd9aR27
I am wondering if it makes sense to do retry inside login and move it here out of the retry function.

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