@@ -115,52 +115,6 @@ func main() {
115
115
}
116
116
}()
117
117
118
- kubeInformerFactory := kubeinformers .NewSharedInformerFactory (kubeClientset , time .Second * 30 )
119
- llmServerPoolInformerFactory := informers .NewSharedInformerFactory (iGWClientSet , time .Second * 30 )
120
-
121
- llmServerPoolController := backend .NewLLMServerPoolController (
122
- ctx ,
123
- * serverPoolName ,
124
- datastore ,
125
- kubeClientset ,
126
- llmServerPoolInformerFactory .Api ().V1alpha1 ().LLMServerPools (),
127
- )
128
-
129
- podController := backend .NewPodController (
130
- ctx ,
131
- * serverPoolName ,
132
- datastore ,
133
- kubeClientset ,
134
- kubeInformerFactory .Core ().V1 ().Pods (),
135
- )
136
-
137
- kubeInformerFactory .Start (ctx .Done ())
138
- llmServerPoolInformerFactory .Start (ctx .Done ())
139
-
140
- errChan := make (chan error )
141
- go func () {
142
- if err = llmServerPoolController .Run (ctx , 1 ); err != nil {
143
- klog .Error (err , "Error running LLMServerPoolController" )
144
- errChan <- err
145
- }
146
- }()
147
-
148
- go func () {
149
- if err = podController .Run (ctx , 2 ); err != nil {
150
- klog .Error (err , "Error running PodController" )
151
- errChan <- err
152
- }
153
- }()
154
-
155
- k8sClient := backend .NewK8sClient ("test-pool" , "default" , kubeClientset , iGWClientSet )
156
- serverPool , err := k8sClient .GetLLMServerPool ()
157
- if err != nil {
158
- klog .Error (err .Error ())
159
- } else if serverPool != nil {
160
- klog .Info (fmt .Printf ("KELLEN TEST: %v" , serverPool .Spec .ModelServerSelector .MatchLabels ))
161
- } else {
162
- klog .Info ("No err but serverPool is nil" )
163
- }
164
118
s := grpc .NewServer ()
165
119
166
120
pp := backend .NewProvider (& backend.PodMetricsClientImpl {}, datastore )
0 commit comments