From 690e0f92d61f71a9431fa6e479671d9fd034ca2a Mon Sep 17 00:00:00 2001 From: Kensei Nakada Date: Fri, 15 Mar 2024 15:18:28 +0900 Subject: [PATCH] fix the message when no scaling down is made (#385) --- pkg/recommender/recommender.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/recommender/recommender.go b/pkg/recommender/recommender.go index d41d9d3e..f4fa5708 100644 --- a/pkg/recommender/recommender.go +++ b/pkg/recommender/recommender.go @@ -272,7 +272,9 @@ func (s *Service) calculateBestNewSize( return jastified, fmt.Sprintf("change %v request (%v) (%v → %v) based on VPA suggestion", k, containerName, resourceRequest.MilliValue(), jastified), nil } - return resourceRequest.MilliValue(), "The autoscaling policy for this resource is Off", nil + return resourceRequest.MilliValue(), + fmt.Sprintf("Tortoise recommends %v as a new %v request (%v), but it's very small scale down change, so tortoise just ignores it", idealSize, k, containerName), + nil } // p == v1beta3.AutoscalingTypeHorizontal