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

drop MemberClusterService interface & rename the implementation #483

Conversation

MatousJobanek
Copy link
Contributor

@MatousJobanek MatousJobanek commented Nov 11, 2024

  • drop MemberClusterService interface
  • rename the implementation to MemberClusters
  • move it to the proxy package
  • provide the GetMemberClustersFunc as a parameter, so it uses the same as is used in proxy.go
    • this also slightly simplifies the tests
  • drop "ServiceImpl options" as they are not needed anymore
  • drop ProxyFakeApp as it is not needed anymore

KUBESAW-237

Copy link

codecov bot commented Nov 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.46%. Comparing base (738daee) to head (17a3ed7).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #483      +/-   ##
==========================================
+ Coverage   85.35%   85.46%   +0.11%     
==========================================
  Files          32       32              
  Lines        3175     3172       -3     
==========================================
+ Hits         2710     2711       +1     
+ Misses        378      374       -4     
  Partials       87       87              
Flag Coverage Δ
unittests 85.46% <100.00%> (+0.11%) ⬆️

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.

Copy link
Contributor

@mfrancisc mfrancisc left a comment

Choose a reason for hiding this comment

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

Really nice simplification 👍

pkg/proxy/members_test.go Outdated Show resolved Hide resolved
Copy link

openshift-ci bot commented Nov 12, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: alexeykazakov, MatousJobanek, mfrancisc

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [MatousJobanek,alexeykazakov,mfrancisc]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@MatousJobanek MatousJobanek merged commit 2238b65 into codeready-toolchain:master Nov 14, 2024
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants