@@ -112,13 +112,6 @@ func NewDynamicResourceConsumer(name, nsName string, kind schema.GroupVersionKin
112
112
dynamicRequestSizeInMillicores , dynamicRequestSizeInMegabytes , dynamicRequestSizeCustomMetric , cpuLimit , memLimit , clientset , scaleClient , nil , nil )
113
113
}
114
114
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
-
122
115
// NewMetricExporter is a wrapper to create a new ResourceConsumer for metrics exporter
123
116
func NewMetricExporter (name , nsName string , podAnnotations , serviceAnnotations map [string ]string , metricValue int , clientset clientset.Interface , scaleClient scaleclient.ScalesGetter ) * ResourceConsumer {
124
117
return newResourceConsumer (name , nsName , KindDeployment , 1 , 0 , 0 , metricValue , dynamicConsumptionTimeInSeconds ,
0 commit comments