Skip to content

Commit 1ba0e98

Browse files
committed
Update insufficient resources error message (#919)
(cherry picked from commit 81dcec8)
1 parent d9a79a5 commit 1ba0e98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/operator/operator/errors.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,9 +238,9 @@ func ErrorFieldNotSupportedByPredictorType(fieldKey string, predictorType userco
238238
}
239239

240240
func ErrorNoAvailableNodeComputeLimit(resource string, reqStr string, maxStr string) error {
241-
message := fmt.Sprintf("no available nodes can satisfy the requested %s quantity - requested %s %s but nodes only have %s available %s", resource, reqStr, resource, maxStr, resource)
241+
message := fmt.Sprintf("no instances can satisfy the requested %s quantity - requested %s %s but instances only have %s %s available", resource, reqStr, resource, maxStr, resource)
242242
if maxStr == "0" {
243-
message = fmt.Sprintf("no available nodes can satisfy the requested %s quantity - requested %s %s but nodes don't have any %s", resource, reqStr, resource, resource)
243+
message = fmt.Sprintf("no instances can satisfy the requested %s quantity - requested %s %s but instances don't have any %s", resource, reqStr, resource, resource)
244244
}
245245
return errors.WithStack(&errors.Error{
246246
Kind: ErrNoAvailableNodeComputeLimit,

0 commit comments

Comments
 (0)