OCPBUGS-99774: remove redundant cluster-wide informer and unused kube-system registration - #966
OCPBUGS-99774: remove redundant cluster-wide informer and unused kube-system registration#966savio87 wants to merge 1 commit into
Conversation
…-system registration
|
Pipeline controller notification For optional jobs, comment This repository is configured in: LGTM mode |
|
@savio87: This pull request references Jira Issue OCPBUGS-99774, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
WalkthroughThe operator removes the shared Kubernetes informer from authentication informer setup. It updates watched namespaces and routes certificate signing request consumers through the namespace-aware informer factory. ChangesInformer wiring
Estimated code review effort: 2 (Simple) | ~10 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 15✅ Passed checks (15 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Hi @savio87. Thanks for your PR. I'm waiting for a openshift member to verify that this patch is reasonable to test. If it is, they should reply with Regular contributors should join the org to skip this step. Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
This removes a redundant cluster-wide informer (marked // TODO remove) and an unused kube-system namespace registration. The CSR informer usage is migrated to the existing cluster-wide entry in kubeInformersForNamespaces. Could a maintainer please set the target version on OCPBUGS-99774 and run /ok-to-test? Thank you! |
Bug
https://redhat.atlassian.net/browse/OCPBUGS-99774
Problem
The
cluster-authentication-operatorhas two informer cleanup issues:Redundant cluster-wide informer: A
kubeInformersfield (marked// TODO remove) creates a separatekubeinformers.NewSharedInformerFactorythat duplicates the""(cluster-wide) entry already inkubeInformersForNamespaces. It is only used forCertificateSigningRequestsinformer in two places.Unused namespace registration:
kube-systemis registered inkubeInformersForNamespacesbut never queried viaInformersFor("kube-system")anywhere in the operator, wasting a watch connection.Fix
starter.gofrominformerFactories.kubeInformerstoinformerFactories.kubeInformersForNamespaces.InformersFor(""), which provides the same cluster-wide informerkubeInformersfield, its initialization, and its entry insimplifiedInformerFactories()kubeinformersimportkube-systemfromkubeInformersForNamespacesregistrationSummary by CodeRabbit