File tree 2 files changed +25
-5
lines changed
2 files changed +25
-5
lines changed Original file line number Diff line number Diff line change
1
+ /*
2
+ Copyright 2025 The Kubernetes Authors.
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+ */
16
+
17
+ package scheduling
18
+
19
+ import (
20
+ "sigs.k8s.io/gateway-api-inference-extension/pkg/epp/scheduling/plugins/scorers"
21
+ )
22
+
23
+ func init () {
24
+ defaultConfig .scorers [& scorers.LoadBasedScorer {}] = 1.0
25
+ }
Original file line number Diff line number Diff line change @@ -17,16 +17,11 @@ package scorers
17
17
18
18
import (
19
19
"sigs.k8s.io/gateway-api-inference-extension/pkg/epp/scheduling/config"
20
- "sigs.k8s.io/gateway-api-inference-extension/pkg/epp/scheduling/plugins"
21
20
"sigs.k8s.io/gateway-api-inference-extension/pkg/epp/scheduling/types"
22
21
)
23
22
24
23
type LoadBasedScorer struct {}
25
24
26
- func NewLoadBasedScorer () plugins.Scorer {
27
- return LoadBasedScorer {}
28
- }
29
-
30
25
func (s LoadBasedScorer ) Name () string {
31
26
return "load based scorer"
32
27
}
You can’t perform that action at this time.
0 commit comments