Skip to content

Commit 0c8dc93

Browse files
authored
Merge pull request kubernetes#125498 from ahmetb/kubelet-predicate-description
kubelet: Surface description for predicate failed Events
2 parents 79fee52 + 4d3f5cd commit 0c8dc93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/kubelet/lifecycle/predicate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ type PredicateFailureError struct {
269269
}
270270

271271
func (e *PredicateFailureError) Error() string {
272-
return fmt.Sprintf("Predicate %s failed", e.PredicateName)
272+
return fmt.Sprintf("Predicate %s failed: %s", e.PredicateName, e.PredicateDesc)
273273
}
274274

275275
// GetReason returns the reason of the PredicateFailureError.

0 commit comments

Comments
 (0)