Skip to content

Commit 7c61a97

Browse files
author
高强
committed
update warning msg && condition msg
1 parent 5811077 commit 7c61a97

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/util/helpers.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ func GenerateConditionChangeEvent(t string, status types.ConditionStatus, reason
3737
}
3838
}
3939

40-
func GenerateWarnConditionChangeEvent(reason string, timestamp time.Time,msg string) types.Event {
40+
func GenerateWarnConditionChangeEvent(t string, status types.ConditionStatus, reason string, timestamp time.Time, msg string) types.Event {
4141
return types.Event{
4242
Severity: types.Warn,
4343
Timestamp: timestamp,
4444
Reason: reason,
45-
Message: msg,
45+
Message: fmt.Sprintf("Node condition %s is now: %s, reason: %s, msg: %s", t, status, reason, msg),
4646
}
4747
}
4848

0 commit comments

Comments
 (0)