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

feat: use lister in registry client #5620

Merged
merged 5 commits into from
Dec 8, 2022

Conversation

eddycharly
Copy link
Member

Explanation

This PR uses a lister in registry client to fetch image pull secrets instead of making api calls.

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
@codecov
Copy link

codecov bot commented Dec 8, 2022

Codecov Report

Merging #5620 (de4b391) into main (aade51e) will increase coverage by 0.00%.
The diff coverage is 0.00%.

❗ Current head de4b391 differs from pull request most recent head c0cc75d. Consider uploading reports for the commit c0cc75d to get more accurate results

@@           Coverage Diff           @@
##             main    #5620   +/-   ##
=======================================
  Coverage   36.38%   36.38%           
=======================================
  Files         174      174           
  Lines       19157    19152    -5     
=======================================
- Hits         6970     6969    -1     
+ Misses      11407    11404    -3     
+ Partials      780      779    -1     
Impacted Files Coverage Δ
pkg/engine/imageVerify.go 68.23% <ø> (+0.36%) ⬆️
pkg/engine/jsonContext.go 12.28% <ø> (+0.12%) ⬆️
pkg/registryclient/client.go 24.24% <0.00%> (-1.16%) ⬇️
pkg/registryclient/utils.go 0.00% <0.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@@ -92,7 +88,7 @@ func WithKeychainPullSecrets(ctx context.Context, kubClient kubernetes.Interface
)
return nil
}
return c.pullSecretRefresher(ctx, c)
return nil
Copy link
Member

Choose a reason for hiding this comment

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

Return nil? We don't execute it?

Copy link
Member Author

Choose a reason for hiding this comment

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

Nope, we run it lazily when a call has to be made.
The caller does not need to refresh anymore.

@realshuting realshuting merged commit 8376bf8 into kyverno:main Dec 8, 2022
@eddycharly eddycharly deleted the rclient-lister branch December 8, 2022 17:03
MdSahil-oss pushed a commit to MdSahil-oss/kyverno that referenced this pull request Dec 29, 2022
Signed-off-by: Md Sahil <Mohdssahil1@gmail.com>
MdSahil-oss pushed a commit to MdSahil-oss/kyverno that referenced this pull request Jan 11, 2023
Signed-off-by: MdSahil-oss <Mohdssahil1@gmail.com>
MdSahil-oss pushed a commit to MdSahil-oss/kyverno that referenced this pull request Jan 11, 2023
Signed-off-by: MdSahil-oss <Mohdssahil1@gmail.com>
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.

None yet

2 participants