Add condition message to event message

If you're using some monitoring solution that aggregates events from
your Kubernetes cluster, having the underlying reason why a condition
triggered could be very useful, especially if you are using custom
plugin monitors.

Co-authored-by: Micah Norman <micnorman@paypal.com>
Signed-off-by: Ryan Eschinger <reschinger@paypal.com>
This commit is contained in:
Andrew Garrett
2022-06-08 21:42:40 +00:00
committed by Ryan Eschinger
co-authored by Micah Norman
parent 51508603fe
commit a39a7c6e0f
4 changed files with 5 additions and 2 deletions
@@ -232,6 +232,7 @@ func (c *customPluginMonitor) generateStatus(result cpmtypes.Result) *types.Stat
condition.Type,
status,
newReason,
newMessage,
timestamp,
)