@@ -36,18 +36,18 @@ var (
36
36
"targetPodHeader" ,
37
37
"target-pod" ,
38
38
"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 " ,
41
41
"" ,
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." )
43
47
serviceName = flag .String (
44
48
"serviceName" ,
45
49
"" ,
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" )
51
51
zone = flag .String (
52
52
"zone" ,
53
53
"" ,
@@ -114,35 +114,35 @@ func main() {
114
114
}
115
115
116
116
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" ),
123
123
}).SetupWithManager (mgr ); err != nil {
124
124
klog .Error (err , "Error setting up InferencePoolReconciler" )
125
125
}
126
126
127
127
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" ),
134
134
}).SetupWithManager (mgr ); err != nil {
135
135
klog .Error (err , "Error setting up InferenceModelReconciler" )
136
136
}
137
137
138
138
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 ,
146
146
}).SetupWithManager (mgr ); err != nil {
147
147
klog .Error (err , "Error setting up EndpointSliceReconciler" )
148
148
}
0 commit comments