(api *userconfig.API, compute userconfig.Compute, maxMemMap map[string]kresource.Quantity)
| 83 | } |
| 84 | |
| 85 | func ErrorNoAvailableNodeComputeLimit(api *userconfig.API, compute userconfig.Compute, maxMemMap map[string]kresource.Quantity) error { |
| 86 | msg := "no instance types in your cluster are large enough to satisfy the requested resources for your pod\n\n" |
| 87 | msg += console.Bold("requested pod resources\n") |
| 88 | msg += podResourceRequestsTable(api, compute) |
| 89 | msg += "\n" + s.TrimTrailingNewLines(nodeGroupResourcesTable(api, compute, maxMemMap)) |
| 90 | |
| 91 | return errors.WithStack(&errors.Error{ |
| 92 | Kind: ErrNoAvailableNodeComputeLimit, |
| 93 | Message: msg, |
| 94 | }) |
| 95 | } |
| 96 | |
| 97 | func ErrorAPIUsedByTrafficSplitter(trafficSplitters []string) error { |
| 98 | return errors.WithStack(&errors.Error{ |
no test coverage detected