-
Notifications
You must be signed in to change notification settings - Fork 554
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
performance improvements on mount fetch #2152
Conversation
23ccd2b
to
b478ba2
Compare
980462d
to
3037b0c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Had a couple non-blocking suggestions
b478ba2
to
ae8e2b4
Compare
1275990
to
3fcf3cc
Compare
|
||
// If we fell out here then we didn't find our Auth in the list. | ||
if err := d.Set("type", auth.Type); err != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we want the error checks for d.Set to be ignored, it seems like we can set up an exclusion: https://github.com/golangci/golangci-lint/blob/master/.golangci.reference.yml#L266-L299
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I think we should probably enforce error checking in this case just to be safe.
Merging to the base branch |
* auth/mount: fetch single vault resource on read * fetch api psuedo tag for api wrappers * remove comment * fix failing case where resource needs to be recreated * performance improvements on mount fetch (#2152) * add mountutil and GetMount * fix nomad backend existence check * fix context arg * use GET instead of LIST for auth mount fetching * normalize error response * changelog * fix github auth path * fix auth existence checking * use contexts and add log * fix build and rebase * make golangci-lint happy
Description
This PR is a follow up to #2145. Here we make similar improvements across the remaining resources that were superfluously calling LIST instead of GET.
Checklist