diff --git a/test/integration/scheduler_perf/scheduler_perf.go b/test/integration/scheduler_perf/scheduler_perf.go index a69100bff9e..6a0c11c149f 100644 --- a/test/integration/scheduler_perf/scheduler_perf.go +++ b/test/integration/scheduler_perf/scheduler_perf.go @@ -140,25 +140,25 @@ var ( Metrics: map[string][]*labelValues{ "scheduler_framework_extension_point_duration_seconds": { { - label: extensionPointsLabelName, - values: metrics.ExtentionPoints, + Label: extensionPointsLabelName, + Values: metrics.ExtentionPoints, }, }, "scheduler_scheduling_attempt_duration_seconds": { { - label: resultLabelName, - values: []string{metrics.ScheduledResult, metrics.UnschedulableResult, metrics.ErrorResult}, + Label: resultLabelName, + Values: []string{metrics.ScheduledResult, metrics.UnschedulableResult, metrics.ErrorResult}, }, }, "scheduler_pod_scheduling_duration_seconds": nil, "scheduler_plugin_execution_duration_seconds": { { - label: pluginLabelName, - values: PluginNames, + Label: pluginLabelName, + Values: PluginNames, }, { - label: extensionPointsLabelName, - values: metrics.ExtentionPoints, + Label: extensionPointsLabelName, + Values: metrics.ExtentionPoints, }, }, }, @@ -167,18 +167,18 @@ var ( qHintMetrics = map[string][]*labelValues{ "scheduler_queueing_hint_execution_duration_seconds": { { - label: pluginLabelName, - values: PluginNames, + Label: pluginLabelName, + Values: PluginNames, }, { - label: eventLabelName, - values: schedframework.AllClusterEventLabels(), + Label: eventLabelName, + Values: schedframework.AllClusterEventLabels(), }, }, "scheduler_event_handling_duration_seconds": { { - label: eventLabelName, - values: schedframework.AllClusterEventLabels(), + Label: eventLabelName, + Values: schedframework.AllClusterEventLabels(), }, }, } diff --git a/test/integration/scheduler_perf/util.go b/test/integration/scheduler_perf/util.go index a4e45f069a9..279f309a4fc 100644 --- a/test/integration/scheduler_perf/util.go +++ b/test/integration/scheduler_perf/util.go @@ -303,8 +303,8 @@ func dataFilename(destFile string) (string, error) { } type labelValues struct { - label string - values []string + Label string + Values []string } // metricsCollectorConfig is the config to be marshalled to YAML config file. @@ -380,13 +380,13 @@ func uniqueLVCombos(lvs []*labelValues) []map[string]string { results := make([]map[string]string, 0) current := lvs[0] - for _, value := range current.values { + for _, value := range current.Values { for _, combo := range remainingCombos { newCombo := make(map[string]string, len(combo)+1) for k, v := range combo { newCombo[k] = v } - newCombo[current.label] = value + newCombo[current.Label] = value results = append(results, newCombo) } }