@@ -31,7 +31,7 @@ import (
3131 "sigs.k8s.io/gateway-api-inference-extension/pkg/epp/config"
3232 "sigs.k8s.io/gateway-api-inference-extension/pkg/epp/datalayer"
3333 "sigs.k8s.io/gateway-api-inference-extension/pkg/epp/plugins"
34- "sigs.k8s.io/gateway-api-inference-extension/pkg/epp/saturationdetector "
34+ "sigs.k8s.io/gateway-api-inference-extension/pkg/epp/saturationcontrol/framework/plugins/staticthresholdcontroller "
3535 "sigs.k8s.io/gateway-api-inference-extension/pkg/epp/scheduling/framework"
3636 "sigs.k8s.io/gateway-api-inference-extension/pkg/epp/scheduling/framework/plugins/multi/prefix"
3737 "sigs.k8s.io/gateway-api-inference-extension/pkg/epp/scheduling/framework/plugins/picker"
@@ -208,8 +208,8 @@ func TestLoadRawConfigurationWithDefaults(t *testing.T) {
208208 },
209209 FeatureGates : configapi.FeatureGates {datalayer .FeatureGate },
210210 SaturationDetector : & configapi.SaturationDetector {
211- QueueDepthThreshold : saturationdetector .DefaultQueueDepthThreshold ,
212- KVCacheUtilThreshold : saturationdetector .DefaultKVCacheUtilThreshold ,
211+ QueueDepthThreshold : staticthresholdcontroller .DefaultQueueDepthThreshold ,
212+ KVCacheUtilThreshold : staticthresholdcontroller .DefaultKVCacheUtilThreshold ,
213213 MetricsStalenessThreshold : metav1.Duration {Duration : 150 * time .Millisecond },
214214 },
215215 }
@@ -249,9 +249,9 @@ func TestLoadRawConfigurationWithDefaults(t *testing.T) {
249249 },
250250 FeatureGates : configapi.FeatureGates {},
251251 SaturationDetector : & configapi.SaturationDetector {
252- QueueDepthThreshold : saturationdetector .DefaultQueueDepthThreshold ,
253- KVCacheUtilThreshold : saturationdetector .DefaultKVCacheUtilThreshold ,
254- MetricsStalenessThreshold : metav1.Duration {Duration : saturationdetector .DefaultMetricsStalenessThreshold },
252+ QueueDepthThreshold : staticthresholdcontroller .DefaultQueueDepthThreshold ,
253+ KVCacheUtilThreshold : staticthresholdcontroller .DefaultKVCacheUtilThreshold ,
254+ MetricsStalenessThreshold : metav1.Duration {Duration : staticthresholdcontroller .DefaultMetricsStalenessThreshold },
255255 },
256256 }
257257
@@ -508,7 +508,7 @@ func TestNewDetector(t *testing.T) {
508508 tests := []struct {
509509 name string
510510 config * configapi.SaturationDetector
511- expectedConfig saturationdetector .Config
511+ expectedConfig staticthresholdcontroller .Config
512512 }{
513513 {
514514 name : "Valid config" ,
@@ -517,7 +517,7 @@ func TestNewDetector(t *testing.T) {
517517 KVCacheUtilThreshold : 0.8 ,
518518 MetricsStalenessThreshold : metav1.Duration {Duration : 100 * time .Millisecond },
519519 },
520- expectedConfig : saturationdetector .Config {
520+ expectedConfig : staticthresholdcontroller .Config {
521521 QueueDepthThreshold : 10 ,
522522 KVCacheUtilThreshold : 0.8 ,
523523 MetricsStalenessThreshold : 100 * time .Millisecond ,
@@ -530,10 +530,10 @@ func TestNewDetector(t *testing.T) {
530530 KVCacheUtilThreshold : - 5.0 ,
531531 MetricsStalenessThreshold : metav1.Duration {Duration : 0 * time .Second },
532532 },
533- expectedConfig : saturationdetector .Config {
534- QueueDepthThreshold : saturationdetector .DefaultQueueDepthThreshold ,
535- KVCacheUtilThreshold : saturationdetector .DefaultKVCacheUtilThreshold ,
536- MetricsStalenessThreshold : saturationdetector .DefaultMetricsStalenessThreshold ,
533+ expectedConfig : staticthresholdcontroller .Config {
534+ QueueDepthThreshold : staticthresholdcontroller .DefaultQueueDepthThreshold ,
535+ KVCacheUtilThreshold : staticthresholdcontroller .DefaultKVCacheUtilThreshold ,
536+ MetricsStalenessThreshold : staticthresholdcontroller .DefaultMetricsStalenessThreshold ,
537537 },
538538 },
539539 {
@@ -543,9 +543,9 @@ func TestNewDetector(t *testing.T) {
543543 KVCacheUtilThreshold : 1.5 ,
544544 MetricsStalenessThreshold : metav1.Duration {Duration : 100 * time .Millisecond },
545545 },
546- expectedConfig : saturationdetector .Config {
546+ expectedConfig : staticthresholdcontroller .Config {
547547 QueueDepthThreshold : 10 ,
548- KVCacheUtilThreshold : saturationdetector .DefaultKVCacheUtilThreshold ,
548+ KVCacheUtilThreshold : staticthresholdcontroller .DefaultKVCacheUtilThreshold ,
549549 MetricsStalenessThreshold : 100 * time .Millisecond ,
550550 },
551551 },
0 commit comments