fix(mgmt-agent): correctly place podwatcher to always run even if ksm is enabled/disabled#6022
fix(mgmt-agent): correctly place podwatcher to always run even if ksm is enabled/disabled#6022bennerv wants to merge 1 commit into
Conversation
…if ksm is enabled
There was a problem hiding this comment.
Pull request overview
This PR fixes mgmt-agent controller wiring so the PodWatcher is always created and started under leader election, regardless of whether the KSM image option is set.
Changes:
- Instantiate
clusterWideKubeInformersandpodWatcherunconditionally (outside theKSMImageconditional). - Keep KSM controller/informers conditional on
KSMImage, while ensuring PodWatcher always runs.
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bennerv, stevekuznetsov The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@bennerv: The following tests failed, say
Full PR test history. Your PR dashboard. 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. I understand the commands that are listed here. |
What
Always run the podwatcher controller.
Why
Was incorrectly nested within the KSM image property being set or not.
Testing
Testing is required for feature completion and tests should be part of the pull
request along with the feature changes.
Describe the testing provided. If you did not add tests, provide a clear
justification.
Special notes for your reviewer
PR Checklist
If E2E tests are included:
demonstrate that the test is able to detect a defect/error and fail with
proper error message and logs which communicates nature of the problem.