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

do not duplicate cached clients #635

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

MatousJobanek
Copy link
Contributor

@rajivnathan noticed that we have duplicated cached all-namespaces scoped clients. This PR removes one of them to decrease the memory utilization.

Copy link
Contributor

@metlos metlos left a comment

Choose a reason for hiding this comment

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

Nice!

While we're at it, we could also remove the multiple ctrl.GetConfigOrDie() and instead just pass the cfg that we got only a few lines above :)

Copy link

codecov bot commented Mar 6, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.80%. Comparing base (9ae2815) to head (72f157f).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #635   +/-   ##
=======================================
  Coverage   81.80%   81.80%           
=======================================
  Files          31       31           
  Lines        3352     3352           
=======================================
  Hits         2742     2742           
  Misses        460      460           
  Partials      150      150           
🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

Looks good (besides the Rajiv's question).

@MatousJobanek
Copy link
Contributor Author

While we're at it, we could also remove the multiple ctrl.GetConfigOrDie() and instead just pass the cfg that we got only a few lines above :)

good point @metlos done in 6df08c0

Copy link

sonarqubecloud bot commented Mar 7, 2025

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 clean up 👍

Copy link
Contributor

@rajivnathan rajivnathan left a comment

Choose a reason for hiding this comment

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

Nice, thanks for doing this. Will be interesting to see if there's a memory usage improvement.

Copy link

openshift-ci bot commented Mar 7, 2025

[APPROVALNOTIFIER] This PR is APPROVED

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

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,fbm3307,metlos,mfrancisc,rajivnathan]

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

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.

6 participants