-
Notifications
You must be signed in to change notification settings - Fork 553
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
Use latest knative/pkg's configmap informer #1615
Conversation
bb02814
to
544cc6b
Compare
Codecov Report
@@ Coverage Diff @@
## main #1615 +/- ##
==========================================
- Coverage 27.99% 27.94% -0.06%
==========================================
Files 137 137
Lines 7826 7820 -6
==========================================
- Hits 2191 2185 -6
Misses 5405 5405
Partials 230 230
Continue to review full report at Codecov.
|
|
||
// Start the informers we got from the SharedInformerFactory above because | ||
// injection doesn't do that for us since we're injecting the Factory and | ||
// not the informers. | ||
if err := controller.StartInformers(ctx.Done(), nsSecretInformer.Informer(), nsConfigMapInformer.Informer()); err != nil { | ||
if err := controller.StartInformers(ctx.Done(), secretInformer.Informer(), configMapInformer.Informer()); err != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know this is just a draft, but jotting this down.
Now that both of these are coming from the informers, instead of the factory, I think we do not need to manually start them.
https://github.com/knative/pkg/blob/main/injection/clients/namespacedkube/informers/core/v1/configmap/configmap.go#L36
For example, above, registers cm informer, so it should be started automagically by the sharedwithmain.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, we should drop this. Good catch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
860b938
to
aff929d
Compare
de13aea
to
539dd57
Compare
Signed-off-by: Nghia Tran <[email protected]>
Signed-off-by: Nghia Tran <[email protected]>
Signed-off-by: Nghia Tran <[email protected]>
Signed-off-by: Nghia Tran <[email protected]>
17a08b5
to
1174380
Compare
going to close and reopen to try and kick DCO... |
Signed-off-by: Nghia Tran <[email protected]>
1174380
to
bc96bd0
Compare
* Use latest knative/pkg and dynamic informers Signed-off-by: Nghia Tran <[email protected]> * No need to start the informers Signed-off-by: Nghia Tran <[email protected]> * Address PR feedback Signed-off-by: Nghia Tran <[email protected]> * Run update-codegen.sh Signed-off-by: Nghia Tran <[email protected]> * Run update-codegen.sh after merge fix Signed-off-by: Nghia Tran <[email protected]>
Summary
Use the latest version of
knative/pkg
to pull in the dynamic configmap informer (knative/pkg#2466)Release Note