@@ -36,18 +36,18 @@ var (
3636 "targetPodHeader" ,
3737 "target-pod" ,
3838 "Header key used by Envoy to route to the appropriate pod. This must match Envoy configuration." )
39- serverPoolName = flag .String (
40- "serverPoolName " ,
39+ poolName = flag .String (
40+ "poolName " ,
4141 "" ,
42- "Name of the serverPool this Endpoint Picker is associated with." )
42+ "Name of the InferencePool this Endpoint Picker is associated with." )
43+ poolNamespace = flag .String (
44+ "poolNamespace" ,
45+ "default" ,
46+ "Namespace of the InferencePool this Endpoint Picker is associated with." )
4347 serviceName = flag .String (
4448 "serviceName" ,
4549 "" ,
46- "Name of the service that will be used to read the endpointslices from" )
47- namespace = flag .String (
48- "namespace" ,
49- "default" ,
50- "The Namespace that the server pool should exist in." )
50+ "Name of the Service that will be used to read EndpointSlices from" )
5151 zone = flag .String (
5252 "zone" ,
5353 "" ,
@@ -114,35 +114,35 @@ func main() {
114114 }
115115
116116 if err := (& backend.InferencePoolReconciler {
117- Datastore : datastore ,
118- Scheme : mgr .GetScheme (),
119- Client : mgr .GetClient (),
120- ServerPoolName : * serverPoolName ,
121- Namespace : * namespace ,
122- Record : mgr .GetEventRecorderFor ("InferencePool" ),
117+ Datastore : datastore ,
118+ Scheme : mgr .GetScheme (),
119+ Client : mgr .GetClient (),
120+ PoolName : * poolName ,
121+ PoolNamespace : * poolNamespace ,
122+ Record : mgr .GetEventRecorderFor ("InferencePool" ),
123123 }).SetupWithManager (mgr ); err != nil {
124124 klog .Error (err , "Error setting up InferencePoolReconciler" )
125125 }
126126
127127 if err := (& backend.InferenceModelReconciler {
128- Datastore : datastore ,
129- Scheme : mgr .GetScheme (),
130- Client : mgr .GetClient (),
131- ServerPoolName : * serverPoolName ,
132- Namespace : * namespace ,
133- Record : mgr .GetEventRecorderFor ("InferenceModel" ),
128+ Datastore : datastore ,
129+ Scheme : mgr .GetScheme (),
130+ Client : mgr .GetClient (),
131+ PoolName : * poolName ,
132+ PoolNamespace : * poolNamespace ,
133+ Record : mgr .GetEventRecorderFor ("InferenceModel" ),
134134 }).SetupWithManager (mgr ); err != nil {
135135 klog .Error (err , "Error setting up InferenceModelReconciler" )
136136 }
137137
138138 if err := (& backend.EndpointSliceReconciler {
139- Datastore : datastore ,
140- Scheme : mgr .GetScheme (),
141- Client : mgr .GetClient (),
142- Record : mgr .GetEventRecorderFor ("endpointslice" ),
143- ServiceName : * serviceName ,
144- Zone : * zone ,
145- ServerPoolName : * serverPoolName ,
139+ Datastore : datastore ,
140+ Scheme : mgr .GetScheme (),
141+ Client : mgr .GetClient (),
142+ Record : mgr .GetEventRecorderFor ("endpointslice" ),
143+ ServiceName : * serviceName ,
144+ Zone : * zone ,
145+ PoolName : * poolName ,
146146 }).SetupWithManager (mgr ); err != nil {
147147 klog .Error (err , "Error setting up EndpointSliceReconciler" )
148148 }
0 commit comments