mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 15:05:27 +00:00
Improve event readability
This commit is contained in:
parent
e968b6be81
commit
8ee06a9983
@ -40,7 +40,7 @@ var ErrNoNodesAvailable = fmt.Errorf("no nodes available to schedule pods")
|
||||
|
||||
// implementation of the error interface
|
||||
func (f *FitError) Error() string {
|
||||
output := fmt.Sprintf("failed to find fit for pod: %v", f.Pod)
|
||||
output := fmt.Sprintf("failed to find fit for pod, ")
|
||||
for node, predicateList := range f.FailedPredicates {
|
||||
output = output + fmt.Sprintf("Node %s: %s", node, strings.Join(predicateList.List(), ","))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user