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
176176
177177 condition .Status = status
178178 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.
181181 condition .Transition = timestamp
182+ condition .Reason = result .Rule .Reason
182183 condition .Message = result .Message
183184 events = append (events , util .GenerateConditionChangeEvent (
184185 condition .Type ,
You can’t perform that action at this time.
0 commit comments