Merge pull request #125498 from ahmetb/kubelet-predicate-description

kubelet: Surface description for predicate failed Events
This commit is contained in:
Kubernetes Prow Robot 2024-07-01 17:07:32 -07:00 committed by GitHub
commit 0c8dc93049
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -269,7 +269,7 @@ type PredicateFailureError struct {
}
func (e *PredicateFailureError) Error() string {
return fmt.Sprintf("Predicate %s failed", e.PredicateName)
return fmt.Sprintf("Predicate %s failed: %s", e.PredicateName, e.PredicateDesc)
}
// GetReason returns the reason of the PredicateFailureError.