mirror of
https://github.com/kubernetes/node-problem-detector.git
synced 2026-08-19 04:06:24 +00:00
fix bug in skip_initial_status
This commit is contained in:
committed by
Stanislav Egorkin
parent
84eb1e338f
commit
f24dbb13f7
@@ -125,6 +125,9 @@ func (c *customPluginMonitor) Stop() {
|
||||
func (c *customPluginMonitor) monitorLoop() {
|
||||
if !*c.config.PluginGlobalConfig.SkipInitialStatus {
|
||||
c.initializeStatus()
|
||||
} else {
|
||||
c.conditions = initialConditions(c.config.DefaultConditions)
|
||||
klog.Infof("Skipping condition initialization: %+v", c.conditions)
|
||||
}
|
||||
|
||||
resultChan := c.plugin.GetResultChan()
|
||||
|
||||
Reference in New Issue
Block a user