Skip to content
This repository was archived by the owner on Jul 11, 2023. It is now read-only.

(k8s/informers): Use InformerCollection for other clients #4804

Conversation

keithmattix
Copy link
Contributor

@keithmattix keithmattix commented Jun 9, 2022

Use the new InformerCollection instead of fragmenting informers across
different clients

Part of #4551
Signed-off-by: Keith Mattix II [email protected]

Description:

Testing done:

Affected area:

Functional Area
Control Plane [X]

Please answer the following questions with yes/no.

  1. Does this change contain code from or inspired by another project?

    • Did you notify the maintainers and provide attribution?
  2. Is this a breaking change?

  3. Has documentation corresponding to this change been updated in the osm-docs repo (if applicable)?

Use the new InformerCollection instead of fragmenting informers across
different clients

Signed-off-by: Keith Mattix II <[email protected]>
Copy link
Contributor

@steeling steeling left a comment

Choose a reason for hiding this comment

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

Awesome stuff, a couple nits, but LGTM.

Love to see the large amount of code deleted :)

@keithmattix keithmattix force-pushed the refactor/use-informer-collection-for-other-clients branch from a34bdb6 to 333700a Compare June 10, 2022 17:59
@keithmattix keithmattix marked this pull request as ready for review June 10, 2022 22:56
@codecov-commenter
Copy link

codecov-commenter commented Jun 10, 2022

Codecov Report

Merging #4804 (b825c53) into main (47c06ab) will decrease coverage by 0.03%.
The diff coverage is 79.54%.

@@            Coverage Diff             @@
##             main    #4804      +/-   ##
==========================================
- Coverage   68.54%   68.51%   -0.04%     
==========================================
  Files         223      223              
  Lines       16225    16075     -150     
==========================================
- Hits        11122    11013     -109     
+ Misses       5052     5011      -41     
  Partials       51       51              
Flag Coverage Δ
unittests 68.51% <79.54%> (-0.04%) ⬇️

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

Impacted Files Coverage Δ
cmd/osm-bootstrap/osm-bootstrap.go 46.83% <0.00%> (-0.84%) ⬇️
cmd/osm-controller/osm-controller.go 13.60% <0.00%> (+0.31%) ⬆️
pkg/smi/types.go 100.00% <ø> (ø)
pkg/configurator/methods.go 72.03% <86.95%> (ø)
pkg/smi/client.go 76.44% <87.50%> (+2.79%) ⬆️
pkg/configurator/client.go 95.94% <100.00%> (+6.97%) ⬆️
pkg/policy/client.go 91.75% <100.00%> (+3.83%) ⬆️
pkg/ticker/ticker.go 83.33% <0.00%> (-3.85%) ⬇️
pkg/envoy/rbac/policy.go 97.67% <0.00%> (-2.33%) ⬇️
pkg/certificate/manager.go 90.09% <0.00%> (-0.66%) ⬇️
... and 7 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 47c06ab...b825c53. Read the comment docs.

Signed-off-by: Keith Mattix II <[email protected]>
@keithmattix keithmattix requested a review from steeling June 13, 2022 17:25
Signed-off-by: Keith Mattix II <[email protected]>
@jaellio jaellio merged commit 241e8ae into openservicemesh:main Jun 13, 2022
@keithmattix keithmattix deleted the refactor/use-informer-collection-for-other-clients branch June 13, 2022 21:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants