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

Add authenticated refresh endpoints for metadata and userdata #233

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

ScottGarman
Copy link
Contributor

@ScottGarman ScottGarman commented Oct 2, 2024

These endpoints are intended for admin/operators to be able to force a refresh of metadata or userdata for troubleshooting purposes. Regardless of whether the data is in the local database, these endpoints invoke the lookup client to pull and save the latest data from the upstream source.

Also includes misc cleanups and module updates to make the linters happy.

These endpoints are intended for admin/operators to be able to force a
refresh of metadata or userdata for troubleshooting purposes. Regardless
of whether the data is in the local database, these endpoints invoke the
lookup client to pull and save the latest data from the upstream source.

Also includes misc cleanups to make the linter happy.

Signed-off-by: Scott Garman <[email protected]>
@ScottGarman ScottGarman requested a review from a team as a code owner October 2, 2024 20:49
Signed-off-by: Scott Garman <[email protected]>
Copy link

codecov bot commented Oct 2, 2024

Codecov Report

Attention: Patch coverage is 4.65116% with 41 lines in your changes missing coverage. Please review.

Project coverage is 63.66%. Comparing base (5fc59a3) to head (f400c85).

Files with missing lines Patch % Lines
pkg/api/v1/router_instance_metadata.go 0.00% 39 Missing ⚠️
cmd/serve.go 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #233      +/-   ##
==========================================
- Coverage   72.46%   63.66%   -8.80%     
==========================================
  Files          10       16       +6     
  Lines         810     1368     +558     
==========================================
+ Hits          587      871     +284     
- Misses        163      407     +244     
- Partials       60       90      +30     
Flag Coverage Δ
unittests 63.66% <4.65%> (-8.80%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

To address issues reported by trivy.

Signed-off-by: Scott Garman <[email protected]>
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.

1 participant