Skip to content

Commit

Permalink
fix bug in skip_initial_status
Browse files Browse the repository at this point in the history
  • Loading branch information
levaspb authored and Stanislav Egorkin committed Feb 2, 2024
1 parent 84eb1e3 commit f24dbb1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/custompluginmonitor/custom_plugin_monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit f24dbb1

Please sign in to comment.