Clarify error messages in HPA metrics

With the introduction of the RESTMetrics client, there are two ways to
fetch metrics for auto-scaling. However, they previously shared error
messages. This could be misleading. Make the error message more clearly
show which method is in use.
This commit is contained in:
mattjmcnaughton
2018-01-02 08:48:03 -05:00
parent da9a4d5da9
commit 77e651aed1
3 changed files with 6 additions and 6 deletions

View File

@@ -252,7 +252,7 @@ func TestRESTClientQpsSumEqualZero(t *testing.T) {
func TestRESTClientCPUEmptyMetrics(t *testing.T) {
tc := restClientTestCase{
resourceName: v1.ResourceCPU,
desiredError: fmt.Errorf("no metrics returned from heapster"),
desiredError: fmt.Errorf("no metrics returned from resource metrics API"),
reportedMetricPoints: []metricPoint{},
reportedPodMetrics: [][]int64{},
}