mirror of
https://github.com/kubernetes/node-problem-detector.git
synced 2026-04-21 01:46:42 +00:00
Add existing monitors into the problem daemon registration hook.
This commit is contained in:
@@ -25,11 +25,22 @@ import (
|
||||
|
||||
"k8s.io/node-problem-detector/pkg/custompluginmonitor/plugin"
|
||||
cpmtypes "k8s.io/node-problem-detector/pkg/custompluginmonitor/types"
|
||||
"k8s.io/node-problem-detector/pkg/problemdaemon"
|
||||
"k8s.io/node-problem-detector/pkg/types"
|
||||
"k8s.io/node-problem-detector/pkg/util"
|
||||
"k8s.io/node-problem-detector/pkg/util/tomb"
|
||||
)
|
||||
|
||||
const CustomPluginMonitorName = "custom-plugin-monitor"
|
||||
|
||||
func init() {
|
||||
problemdaemon.Register(
|
||||
CustomPluginMonitorName,
|
||||
types.ProblemDaemonHandler{
|
||||
CreateProblemDaemonOrDie: NewCustomPluginMonitorOrDie,
|
||||
CmdOptionDescription: "Set to config file paths."})
|
||||
}
|
||||
|
||||
type customPluginMonitor struct {
|
||||
config cpmtypes.CustomPluginConfig
|
||||
conditions []types.Condition
|
||||
|
||||
Reference in New Issue
Block a user