Merge pull request #86570 from YuikoTakada/remove_NewMetricExporter

Remove unused function NewMetricExporter from e2e test
This commit is contained in:
Kubernetes Prow Robot 2019-12-26 03:57:38 -08:00 committed by GitHub
commit 132d9e2f4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -112,12 +112,6 @@ func NewDynamicResourceConsumer(name, nsName string, kind schema.GroupVersionKin
dynamicRequestSizeInMillicores, dynamicRequestSizeInMegabytes, dynamicRequestSizeCustomMetric, cpuLimit, memLimit, clientset, scaleClient, nil, nil)
}
// NewMetricExporter is a wrapper to create a new ResourceConsumer for metrics exporter
func NewMetricExporter(name, nsName string, podAnnotations, serviceAnnotations map[string]string, metricValue int, clientset clientset.Interface, scaleClient scaleclient.ScalesGetter) *ResourceConsumer {
return newResourceConsumer(name, nsName, KindDeployment, 1, 0, 0, metricValue, dynamicConsumptionTimeInSeconds,
dynamicRequestSizeInMillicores, dynamicRequestSizeInMegabytes, dynamicRequestSizeCustomMetric, 100, 100, clientset, scaleClient, podAnnotations, serviceAnnotations)
}
/*
NewResourceConsumer creates new ResourceConsumer
initCPUTotal argument is in millicores