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

vault: add retries to read-only calls #1354

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

gmichelo
Copy link
Contributor

No description provided.

Copy link
Contributor

@edganiukov edganiukov left a comment

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
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