MCPcopy
hub / github.com/cortexlabs/cortex / ErrorNoAvailableNodeComputeLimit

Function ErrorNoAvailableNodeComputeLimit

pkg/operator/resources/errors.go:85–95  ·  view source on GitHub ↗
(api *userconfig.API, compute userconfig.Compute, maxMemMap map[string]kresource.Quantity)

Source from the content-addressed store, hash-verified

83}
84
85func 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
97func ErrorAPIUsedByTrafficSplitter(trafficSplitters []string) error {
98 return errors.WithStack(&errors.Error{

Callers 1

validateK8sComputeFunction · 0.85

Calls 4

BoldFunction · 0.92
WithStackFunction · 0.92
podResourceRequestsTableFunction · 0.85
nodeGroupResourcesTableFunction · 0.85

Tested by

no test coverage detected