Skip to content

Commit 1b8fcd4

Browse files
committed
Changed 'Pod' to 'Endpoint' in Scheduler type names
Signed-off-by: Shmuel Kallner <[email protected]>
1 parent 4dccf1b commit 1b8fcd4

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

pkg/epp/scheduling/types/types.go

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import (
2222
"fmt"
2323
"strings"
2424

25-
"sigs.k8s.io/gateway-api-inference-extension/pkg/epp/backend"
2625
backendmetrics "sigs.k8s.io/gateway-api-inference-extension/pkg/epp/backend/metrics"
2726
"sigs.k8s.io/gateway-api-inference-extension/pkg/epp/datalayer"
2827
)
@@ -188,17 +187,17 @@ func (mc Content) PlainText() string {
188187
return sb.String()
189188
}
190189

191-
type Pod interface {
192-
GetPod() *backend.Pod
190+
type Endpoint interface {
191+
GetMetadata() *datalayer.EndpointMetadata
193192
GetMetrics() *backendmetrics.MetricsState
194193
String() string
195194
Get(string) (datalayer.Cloneable, bool)
196195
Put(string, datalayer.Cloneable)
197196
Keys() []string
198197
}
199198

200-
type ScoredPod struct {
201-
Pod
199+
type ScoredEndpoint struct {
200+
Endpoint
202201
Score float64
203202
}
204203

@@ -210,23 +209,23 @@ func (pm *PodMetrics) String() string {
210209
return fmt.Sprintf("%+v", *pm)
211210
}
212211

213-
func (pm *PodMetrics) GetPod() *backend.Pod {
214-
return pm.Pod
212+
func (pm *PodMetrics) GetMetadata() *datalayer.EndpointMetadata {
213+
return pm.EndpointMetadata
215214
}
216215

217216
func (pm *PodMetrics) GetMetrics() *backendmetrics.MetricsState {
218217
return pm.MetricsState
219218
}
220219

221220
type PodMetrics struct {
222-
*backend.Pod
221+
*datalayer.EndpointMetadata
223222
*backendmetrics.MetricsState
224223
datalayer.AttributeMap
225224
}
226225

227226
// ProfileRunResult captures the profile run result.
228227
type ProfileRunResult struct {
229-
TargetPods []Pod
228+
TargetEndpoints []Endpoint
230229
}
231230

232231
// SchedulingResult captures the result of the scheduling cycle.

0 commit comments

Comments
 (0)