-
Notifications
You must be signed in to change notification settings - Fork 641
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
Do not import plugins unnecessarily. #293
Do not import plugins unnecessarily. #293
Conversation
6c36d7d
to
ff09322
Compare
name: "using deprecated options when SystemLogMonitor is not registered", | ||
orig: NodeProblemDetectorOptions{ | ||
SystemLogMonitorConfigPaths: []string{"config-a"}, | ||
MonitorConfigPaths: types.ProblemDaemonConfigPathMap{}, | ||
}, |
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.
nit: probably change to:
types.ProblemDaemonConfigPathMap{
customPluginMonitorName: &[]string{},
}
And similar for below test case,
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.
Oh just realized that github does not highlight the selected code.
So to clarify:
I think we should change MonitorConfigPaths: types.ProblemDaemonConfigPathMap{},
into
MonitorConfigPaths: types.ProblemDaemonConfigPathMap{
customPluginMonitorName: &[]string{},
},
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.
Not needed, because we are not using custom plugin monitor deprecated flag, it is fine to not register that plugin. :)
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.
How about this?
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.
Thanks!
Signed-off-by: Lantao Liu <[email protected]>
ff09322
to
f2d17ee
Compare
Signed-off-by: Lantao Liu <[email protected]>
Sent another commit to fix the build. |
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.
/lgtm
Thanks for the change and the fix :P
name: "using deprecated options when SystemLogMonitor is not registered", | ||
orig: NodeProblemDetectorOptions{ | ||
SystemLogMonitorConfigPaths: []string{"config-a"}, | ||
MonitorConfigPaths: types.ProblemDaemonConfigPathMap{}, | ||
}, |
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.
Thanks!
@xueweiz: changing LGTM is restricted to assignees, and only kubernetes/node-problem-detector repo collaborators may be assigned issues. In 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 kubernetes/test-infra repository. |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Random-Liu, wangzhen127, xueweiz The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Follow up for #275.
This PR:
cmd/options/options.go
;/cc @xueweiz
Signed-off-by: Lantao Liu [email protected]