Fixing all the "composite literal uses unkeyed fields" Vet errors.

This commit is contained in:
goltermann
2016-03-23 16:45:24 -07:00
parent 590038dcf1
commit 32d569d6c7
86 changed files with 177 additions and 178 deletions

View File

@@ -105,7 +105,7 @@ func (tc *testCase) prepareTestClient(t *testing.T) *fake.Clientset {
if latestTimestamp.Before(timestamp) {
latestTimestamp = timestamp
}
heapsterMetricPoint := heapster.MetricPoint{timestamp, reportedMetricPoint.level, nil}
heapsterMetricPoint := heapster.MetricPoint{Timestamp: timestamp, Value: reportedMetricPoint.level, FloatValue: nil}
heapsterMetricPoints = append(heapsterMetricPoints, heapsterMetricPoint)
}
metric := heapster.MetricResult{