Skip to content

Commit 718a651

Browse files
author
Stanislav Egorkin
committed
fix bug in skip_initial_status
1 parent 84eb1e3 commit 718a651

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)