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

fix: support customize cache db for business #19182

Merged
merged 1 commit into from Aug 18, 2023

Conversation

chlins
Copy link
Member

@chlins chlins commented Aug 15, 2023

Support to configure the customized redis db for cache layer and other misc business for core, by default the behavior is same with previous(stored in db 0).

Thank you for contributing to Harbor!

Comprehensive Summary of your change

Issue being fixed

Fixes #19169

Please indicate you've done the following:

  • Well Written Title and Summary of the PR
  • Label the PR as needed. "release-note/ignore-for-release, release-note/new-feature, release-note/update, release-note/enhancement, release-note/community, release-note/breaking-change, release-note/docs, release-note/infra, release-note/deprecation"
  • Accepted the DCO. Commits without the DCO will delay acceptance.
  • Made sure tests are passing and test coverage is added if needed.
  • Considered the docs impact and opened a new docs issue or PR with docs changes if needed in website repository.

@codecov
Copy link

codecov bot commented Aug 15, 2023

Codecov Report

Merging #19182 (33052aa) into main (83ff2b2) will decrease coverage by 0.04%.
The diff coverage is 26.31%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main   #19182      +/-   ##
==========================================
- Coverage   67.42%   67.38%   -0.04%     
==========================================
  Files         993      993              
  Lines      108866   108888      +22     
  Branches     2751     2751              
==========================================
- Hits        73404    73379      -25     
- Misses      31514    31563      +49     
+ Partials     3948     3946       -2     
Flag Coverage Δ
unittests 67.38% <26.31%> (-0.04%) ⬇️

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

Files Changed Coverage Δ
src/controller/quota/controller.go 31.77% <0.00%> (ø)
src/lib/cache/cache.go 64.40% <0.00%> (-28.28%) ⬇️
src/pkg/cached/base_manager.go 40.00% <0.00%> (ø)
src/lib/redis/client.go 92.10% <76.92%> (-7.90%) ⬇️

... and 9 files with indirect coverage changes

Copy link
Contributor

@wy65701436 wy65701436 left a comment

Choose a reason for hiding this comment

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

lgtm

Support to configure the customized redis db for cache layer and other
misc business for core, by default the behavior is same with
previous(stored in db 0).

Signed-off-by: chlins <chenyuzh@vmware.com>
@chlins chlins merged commit c7e2529 into goharbor:main Aug 18, 2023
10 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note/update Update or Fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support configure the separate redis db
5 participants