From 1830e10ca32125c389cc03d81e09ac6b094327a9 Mon Sep 17 00:00:00 2001 From: David Eliahu Date: Thu, 26 Mar 2020 20:34:27 -0700 Subject: [PATCH 1/2] Update insufficient resources error message --- pkg/operator/operator/errors.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/operator/operator/errors.go b/pkg/operator/operator/errors.go index 4f30527188..fbbe9f5234 100644 --- a/pkg/operator/operator/errors.go +++ b/pkg/operator/operator/errors.go @@ -238,9 +238,9 @@ func ErrorFieldNotSupportedByPredictorType(fieldKey string, predictorType userco } func ErrorNoAvailableNodeComputeLimit(resource string, reqStr string, maxStr string) error { - 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) + message := fmt.Sprintf("no available instances can satisfy the requested %s quantity - requested %s %s but instances only have %s %s available", resource, reqStr, resource, maxStr, resource) if maxStr == "0" { - 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) + message = fmt.Sprintf("no available instances can satisfy the requested %s quantity - requested %s %s but instances don't have any %s", resource, reqStr, resource, resource) } return errors.WithStack(&errors.Error{ Kind: ErrNoAvailableNodeComputeLimit, From 7cd34a346d818ab598ba6cea26d89d38dfb40103 Mon Sep 17 00:00:00 2001 From: David Eliahu Date: Thu, 26 Mar 2020 20:35:48 -0700 Subject: [PATCH 2/2] Update errors.go --- pkg/operator/operator/errors.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/operator/operator/errors.go b/pkg/operator/operator/errors.go index fbbe9f5234..6a6c540f65 100644 --- a/pkg/operator/operator/errors.go +++ b/pkg/operator/operator/errors.go @@ -238,9 +238,9 @@ func ErrorFieldNotSupportedByPredictorType(fieldKey string, predictorType userco } func ErrorNoAvailableNodeComputeLimit(resource string, reqStr string, maxStr string) error { - message := fmt.Sprintf("no available instances can satisfy the requested %s quantity - requested %s %s but instances only have %s %s available", resource, reqStr, resource, maxStr, resource) + 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) if maxStr == "0" { - message = fmt.Sprintf("no available instances can satisfy the requested %s quantity - requested %s %s but instances don't have any %s", resource, reqStr, resource, resource) + 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) } return errors.WithStack(&errors.Error{ Kind: ErrNoAvailableNodeComputeLimit,