From fafbed3b1db4716b9bdd069e9bf5ade6a76e526c Mon Sep 17 00:00:00 2001 From: Kensei Nakada Date: Sun, 12 Mar 2023 14:48:48 +0900 Subject: [PATCH] fix the error message --- pkg/controller/podautoscaler/horizontal.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/controller/podautoscaler/horizontal.go b/pkg/controller/podautoscaler/horizontal.go index ca15411abc7..7c08364c6dc 100644 --- a/pkg/controller/podautoscaler/horizontal.go +++ b/pkg/controller/podautoscaler/horizontal.go @@ -433,7 +433,7 @@ func (a *HorizontalController) computeReplicasForMetric(ctx context.Context, hpa // If the container resource metrics feature is disabled but the object has the one, // that means the user enabled the feature once, // created some HPAs with the container resource metrics, and disabled it finally. - return 0, "", time.Time{}, condition, fmt.Errorf("the container resource metrics feature is disabled by the feature gate") + return 0, "", time.Time{}, condition, fmt.Errorf("ContainerResource metric type is not supported: disabled by the feature gate") } replicaCountProposal, timestampProposal, metricNameProposal, condition, err = a.computeStatusForContainerResourceMetric(ctx, specReplicas, spec, hpa, selector, status) if err != nil {