Skip to content

Commit ed3b0cd

Browse files
Add requestcontrol_hooks test and fix boilerplate in slo_aware_router to be consistent
1 parent 3db55c4 commit ed3b0cd

File tree

11 files changed

+1047
-22
lines changed

11 files changed

+1047
-22
lines changed

pkg/epp/scheduling/framework/plugins/multi/slo_aware_router/config.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
/*
2-
© 2025 The Kubernetes Authors.
2+
Copyright 2025 The Kubernetes Authors.
3+
34
Licensed under the Apache License, Version 2.0 (the "License");
45
you may not use this file except in compliance with the License.
56
You may obtain a copy of the License at
67
78
http://www.apache.org/licenses/LICENSE-2.0
89
910
Unless required by applicable law or agreed to in writing, software
10-
distributed under the License.
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.
1115
*/
1216

1317
// Package requestcontrol contains helpers to decouple latency-predictor logic.

pkg/epp/scheduling/framework/plugins/multi/slo_aware_router/headers.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
/*
2-
© 2025 The Kubernetes Authors.
2+
Copyright 2025 The Kubernetes Authors.
3+
34
Licensed under the Apache License, Version 2.0 (the "License");
45
you may not use this file except in compliance with the License.
56
You may obtain a copy of the License at
67
78
http://www.apache.org/licenses/LICENSE-2.0
89
910
Unless required by applicable law or agreed to in writing, software
10-
distributed under the License.
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.
1115
*/
1216

1317
// Package requestcontrol contains helpers to decouple latency-predictor logic.

pkg/epp/scheduling/framework/plugins/multi/slo_aware_router/latencypredictor_helper.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
/*
2-
© 2025 The Kubernetes Authors.
2+
Copyright 2025 The Kubernetes Authors.
3+
34
Licensed under the Apache License, Version 2.0 (the "License");
45
you may not use this file except in compliance with the License.
56
You may obtain a copy of the License at
67
78
http://www.apache.org/licenses/LICENSE-2.0
89
910
Unless required by applicable law or agreed to in writing, software
10-
distributed under the License.
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.
1115
*/
1216

1317
// Package requestcontrol contains helpers to decouple latency-predictor logic.

pkg/epp/scheduling/framework/plugins/multi/slo_aware_router/prediction.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
/*
2-
© 2025 The Kubernetes Authors.
2+
Copyright 2025 The Kubernetes Authors.
3+
34
Licensed under the Apache License, Version 2.0 (the "License");
45
you may not use this file except in compliance with the License.
56
You may obtain a copy of the License at
67
78
http://www.apache.org/licenses/LICENSE-2.0
89
910
Unless required by applicable law or agreed to in writing, software
10-
distributed under the License.
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.
1115
*/
1216

1317
// Package requestcontrol contains helpers to decouple latency-predictor logic.

pkg/epp/scheduling/framework/plugins/multi/slo_aware_router/requestcontrol_hooks.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
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+
117
package slo_aware_router
218

319
import (

0 commit comments

Comments
 (0)