File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -176,9 +176,10 @@ func (c *customPluginMonitor) generateStatus(result cpmtypes.Result) *types.Stat
176
176
177
177
condition .Status = status
178
178
condition .Reason = result .Rule .Reason
179
- } else if condition .Status == status && condition .Message != result .Message {
180
- // change 4: Condition status do not change. condition message changes.
179
+ } else if condition .Status == status && condition .Reason != result .Rule . Reason {
180
+ // change 4: Condition status do not change. condition reason changes.
181
181
condition .Transition = timestamp
182
+ condition .Reason = result .Rule .Reason
182
183
condition .Message = result .Message
183
184
events = append (events , util .GenerateConditionChangeEvent (
184
185
condition .Type ,
You can’t perform that action at this time.
0 commit comments