fix the error message

This commit is contained in:
Kensei Nakada 2023-03-12 14:48:48 +09:00
parent f76258f0ff
commit fafbed3b1d
No known key found for this signature in database
GPG Key ID: 80888DEAD76B4BA4

View File

@ -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 {