Skip to content

Commit 30dab97

Browse files
committed
change event level default
1 parent ccf649c commit 30dab97

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/custompluginmonitor/custom_plugin_monitor.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ func (c *customPluginMonitor) generateStatus(result cpmtypes.Result) *types.Stat
140140
}
141141
}
142142

143-
events = append(events, util.GenerateWarnConditionChangeEvent(
143+
events = append(events, util.GenerateConditionChangeEvent(
144144
condition.Type,
145145
status,
146146
defaultConditionReason,
@@ -154,7 +154,7 @@ func (c *customPluginMonitor) generateStatus(result cpmtypes.Result) *types.Stat
154154
// change 2: Condition status change from False/Unknown to True
155155
condition.Transition = timestamp
156156
condition.Message = result.Message
157-
events = append(events, util.GenerateConditionChangeEvent(
157+
events = append(events, util.GenerateWarnConditionChangeEvent(
158158
condition.Type,
159159
status,
160160
result.Rule.Reason,

0 commit comments

Comments
 (0)