Skip to content

Commit 8cd92db

Browse files
authored
Merge pull request #856 from levaspb/master
fix bug in skip_initial_status
2 parents 325938f + f24dbb1 commit 8cd92db

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/custompluginmonitor/custom_plugin_monitor.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,9 @@ func (c *customPluginMonitor) Stop() {
125125
func (c *customPluginMonitor) monitorLoop() {
126126
if !*c.config.PluginGlobalConfig.SkipInitialStatus {
127127
c.initializeStatus()
128+
} else {
129+
c.conditions = initialConditions(c.config.DefaultConditions)
130+
klog.Infof("Skipping condition initialization: %+v", c.conditions)
128131
}
129132

130133
resultChan := c.plugin.GetResultChan()

0 commit comments

Comments
 (0)