Skip to content

Commit 02a0d80

Browse files
authored
Merge pull request kubernetes#86568 from YuikoTakada/remove_NewStaticResourceConsumer
Delete unused function from e2e test autoscaling_utils.go
2 parents c33bbbc + 11382a3 commit 02a0d80

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

test/e2e/framework/autoscaling/autoscaling_utils.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -112,13 +112,6 @@ func NewDynamicResourceConsumer(name, nsName string, kind schema.GroupVersionKin
112112
dynamicRequestSizeInMillicores, dynamicRequestSizeInMegabytes, dynamicRequestSizeCustomMetric, cpuLimit, memLimit, clientset, scaleClient, nil, nil)
113113
}
114114

115-
// NewStaticResourceConsumer is a wrapper to create a new static ResourceConsumer
116-
// TODO this still defaults to replication controller
117-
func NewStaticResourceConsumer(name, nsName string, replicas, initCPUTotal, initMemoryTotal, initCustomMetric int, cpuLimit, memLimit int64, clientset clientset.Interface, scaleClient scaleclient.ScalesGetter) *ResourceConsumer {
118-
return newResourceConsumer(name, nsName, KindRC, replicas, initCPUTotal, initMemoryTotal, initCustomMetric, staticConsumptionTimeInSeconds,
119-
initCPUTotal/replicas, initMemoryTotal/replicas, initCustomMetric/replicas, cpuLimit, memLimit, clientset, scaleClient, nil, nil)
120-
}
121-
122115
// NewMetricExporter is a wrapper to create a new ResourceConsumer for metrics exporter
123116
func NewMetricExporter(name, nsName string, podAnnotations, serviceAnnotations map[string]string, metricValue int, clientset clientset.Interface, scaleClient scaleclient.ScalesGetter) *ResourceConsumer {
124117
return newResourceConsumer(name, nsName, KindDeployment, 1, 0, 0, metricValue, dynamicConsumptionTimeInSeconds,

0 commit comments

Comments
 (0)