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: skip replication to proxy cache project #16286

Merged
merged 1 commit into from Feb 7, 2022

Conversation

chlins
Copy link
Member

@chlins chlins commented Jan 25, 2022

Fixes: #15155

Signed-off-by: chlins chenyuzh@vmware.com

@codecov
Copy link

codecov bot commented Jan 25, 2022

Codecov Report

Merging #16286 (b1afd2e) into main (7015517) will increase coverage by 0.17%.
The diff coverage is 83.33%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main   #16286      +/-   ##
==========================================
+ Coverage   67.18%   67.35%   +0.17%     
==========================================
  Files         945      946       +1     
  Lines       78191    78660     +469     
  Branches     2315     2315              
==========================================
+ Hits        52536    52985     +449     
- Misses      22143    22163      +20     
  Partials     3512     3512              
Flag Coverage Δ
unittests 67.35% <83.33%> (+0.17%) ⬆️

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

Impacted Files Coverage Δ
src/controller/replication/flow/copy.go 50.00% <73.33%> (+3.22%) ⬆️
src/pkg/reg/model/resource.go 75.00% <75.00%> (ø)
src/controller/replication/flow/stage.go 66.40% <100.00%> (+0.27%) ⬆️
src/pkg/reg/adapter/harbor/base/adapter.go 75.77% <100.00%> (+0.93%) ⬆️
src/controller/event/handler/auditlog/auditlog.go 8.69% <0.00%> (-52.18%) ⬇️
src/common/rbac/system/namespace.go 33.33% <0.00%> (-11.12%) ⬇️
src/controller/event/topic.go 1.80% <0.00%> (-9.01%) ⬇️
src/pkg/usergroup/manager.go 53.84% <0.00%> (-5.62%) ⬇️
...g-retention-tasks/tag-retention-tasks.component.ts 60.00% <0.00%> (-2.86%) ⬇️
src/pkg/notifier/notifier.go 81.70% <0.00%> (-1.63%) ⬇️
... and 6 more

@@ -182,9 +182,14 @@ func (a *Adapter) PrepareForPush(resources []*model.Resource) error {
return errors.Wrapf(err, "list projects with query %s", q)
}

proxyCacheProjects := make(map[string]*Project)
Copy link
Contributor

Choose a reason for hiding this comment

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

make(map[string]bool) is enough?

Copy link
Member Author

Choose a reason for hiding this comment

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

updated

Signed-off-by: chlins <chenyuzh@vmware.com>
@chlins chlins force-pushed the fix/skip-replication-for-proxy-cache branch from f514784 to b1afd2e Compare January 26, 2022 09:24
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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove replication of proxy project
3 participants