We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 53ee78d + a248e2a commit 3feec9bCopy full SHA for 3feec9b
cmd/options/options.go
@@ -80,6 +80,9 @@ func (npdo *NodeProblemDetectorOptions) ValidOrDie() {
80
panic(fmt.Sprintf("apiserver-override %q is not a valid HTTP URI: %v",
81
npdo.ApiServerOverride, err))
82
}
83
+ if len(npdo.SystemLogMonitorConfigPaths) == 0 && len(npdo.CustomPluginMonitorConfigPaths) == 0 {
84
+ panic(fmt.Sprintf("Either --system-log-monitors or --custom-plugin-monitors is required"))
85
+ }
86
87
88
// SetNodeNameOrDie sets `NodeName` field with valid value.
0 commit comments