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

replace methods of the CRTRestClient with the cached client #462

Conversation

MatousJobanek
Copy link
Contributor

This is a follow-up of #461

It replaces the methods of the custom CRTRestClient with the cached client that is already used instead of the custom shared informers. With this, we will use only one client in both proxy and reg-service which is cached and optimized.

I'm changing the implementation of the methods only to minimize the scope of the changes in the PR.

Changes in unit-tests and removal of the extra layers will be addressed in many following (and most likely huge) PRs 😬

KUBESAW-133

Copy link

codecov bot commented Sep 20, 2024

Codecov Report

Attention: Patch coverage is 34.00000% with 33 lines in your changes missing coverage. Please review.

Project coverage is 81.17%. Comparing base (d7ff96d) to head (1b982c6).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
pkg/kubeclient/client.go 64.00% 9 Missing ⚠️
pkg/kubeclient/signup.go 0.00% 6 Missing ⚠️
pkg/kubeclient/banneduser.go 0.00% 4 Missing ⚠️
pkg/kubeclient/mur.go 0.00% 3 Missing ⚠️
pkg/kubeclient/socialevent.go 0.00% 3 Missing ⚠️
pkg/kubeclient/space.go 0.00% 3 Missing ⚠️
pkg/kubeclient/spacebinding.go 0.00% 2 Missing ⚠️
pkg/kubeclient/toolchainstatus.go 0.00% 2 Missing ⚠️
pkg/server/in_cluster_application.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #462      +/-   ##
==========================================
+ Coverage   79.46%   81.17%   +1.71%     
==========================================
  Files          42       42              
  Lines        2727     2630      -97     
==========================================
- Hits         2167     2135      -32     
+ Misses        471      407      -64     
+ Partials       89       88       -1     
Flag Coverage Δ
unittests 81.17% <34.00%> (+1.71%) ⬆️

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

@alexeykazakov alexeykazakov left a comment

Choose a reason for hiding this comment

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

+68 -221 I like this ratio for these reg-service refactoring PRs :)

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.

Nice cleanup 👍

Copy link

openshift-ci bot commented Sep 23, 2024

[APPROVALNOTIFIER] This PR is APPROVED

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

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,xcoulon]

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

Copy link

sonarcloud bot commented Sep 23, 2024

@MatousJobanek MatousJobanek merged commit e15d7cc into codeready-toolchain:master Sep 24, 2024
9 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.

4 participants