@@ -44,18 +44,18 @@ var (
44
44
"targetPodHeader" ,
45
45
"target-pod" ,
46
46
"Header key used by Envoy to route to the appropriate pod. This must match Envoy configuration." )
47
- serverPoolName = flag .String (
48
- "serverPoolName " ,
47
+ poolName = flag .String (
48
+ "poolName " ,
49
49
"" ,
50
- "Name of the serverPool this Endpoint Picker is associated with." )
50
+ "Name of the InferencePool this Endpoint Picker is associated with." )
51
+ poolNamespace = flag .String (
52
+ "poolNamespace" ,
53
+ "default" ,
54
+ "Namespace of the InferencePool this Endpoint Picker is associated with." )
51
55
serviceName = flag .String (
52
56
"serviceName" ,
53
57
"" ,
54
- "Name of the service that will be used to read the endpointslices from" )
55
- namespace = flag .String (
56
- "namespace" ,
57
- "default" ,
58
- "The Namespace that the server pool should exist in." )
58
+ "Name of the Service that will be used to read EndpointSlices from" )
59
59
zone = flag .String (
60
60
"zone" ,
61
61
"" ,
@@ -124,35 +124,35 @@ func main() {
124
124
}
125
125
126
126
if err := (& backend.InferencePoolReconciler {
127
- Datastore : datastore ,
128
- Scheme : mgr .GetScheme (),
129
- Client : mgr .GetClient (),
130
- ServerPoolName : * serverPoolName ,
131
- Namespace : * namespace ,
132
- Record : mgr .GetEventRecorderFor ("InferencePool" ),
127
+ Datastore : datastore ,
128
+ Scheme : mgr .GetScheme (),
129
+ Client : mgr .GetClient (),
130
+ PoolName : * poolName ,
131
+ PoolNamespace : * poolNamespace ,
132
+ Record : mgr .GetEventRecorderFor ("InferencePool" ),
133
133
}).SetupWithManager (mgr ); err != nil {
134
134
klog .Error (err , "Error setting up InferencePoolReconciler" )
135
135
}
136
136
137
137
if err := (& backend.InferenceModelReconciler {
138
- Datastore : datastore ,
139
- Scheme : mgr .GetScheme (),
140
- Client : mgr .GetClient (),
141
- ServerPoolName : * serverPoolName ,
142
- Namespace : * namespace ,
143
- Record : mgr .GetEventRecorderFor ("InferenceModel" ),
138
+ Datastore : datastore ,
139
+ Scheme : mgr .GetScheme (),
140
+ Client : mgr .GetClient (),
141
+ PoolName : * poolName ,
142
+ PoolNamespace : * poolNamespace ,
143
+ Record : mgr .GetEventRecorderFor ("InferenceModel" ),
144
144
}).SetupWithManager (mgr ); err != nil {
145
145
klog .Error (err , "Error setting up InferenceModelReconciler" )
146
146
}
147
147
148
148
if err := (& backend.EndpointSliceReconciler {
149
- Datastore : datastore ,
150
- Scheme : mgr .GetScheme (),
151
- Client : mgr .GetClient (),
152
- Record : mgr .GetEventRecorderFor ("endpointslice" ),
153
- ServiceName : * serviceName ,
154
- Zone : * zone ,
155
- ServerPoolName : * serverPoolName ,
149
+ Datastore : datastore ,
150
+ Scheme : mgr .GetScheme (),
151
+ Client : mgr .GetClient (),
152
+ Record : mgr .GetEventRecorderFor ("endpointslice" ),
153
+ ServiceName : * serviceName ,
154
+ Zone : * zone ,
155
+ PoolName : * poolName ,
156
156
}).SetupWithManager (mgr ); err != nil {
157
157
klog .Error (err , "Error setting up EndpointSliceReconciler" )
158
158
}
0 commit comments