@@ -182,8 +182,8 @@ type diffStoreParams struct {
182182 wantObjectives []* v1alpha2.InferenceObjective
183183}
184184
185- func diffStore (datastore datastore.Datastore , params diffStoreParams ) string {
186- gotPool , _ := datastore .PoolGet ()
185+ func diffStore (store datastore.Datastore , params diffStoreParams ) string {
186+ gotPool , _ := store .PoolGet ()
187187 if diff := cmp .Diff (params .wantPool , gotPool ); diff != "" {
188188 return "inferencePool:" + diff
189189 }
@@ -193,7 +193,7 @@ func diffStore(datastore datastore.Datastore, params diffStoreParams) string {
193193 params .wantPods = []string {}
194194 }
195195 gotPods := []string {}
196- for _ , pm := range datastore .PodList (backendmetrics .AllPodsPredicate ) {
196+ for _ , pm := range store .PodList (datastore .AllPodsPredicate ) {
197197 gotPods = append (gotPods , pm .GetPod ().NamespacedName .Name )
198198 }
199199 if diff := cmp .Diff (params .wantPods , gotPods , cmpopts .SortSlices (func (a , b string ) bool { return a < b })); diff != "" {
@@ -205,7 +205,7 @@ func diffStore(datastore datastore.Datastore, params diffStoreParams) string {
205205 params .wantObjectives = []* v1alpha2.InferenceObjective {}
206206 }
207207
208- if diff := cmp .Diff (params .wantObjectives , datastore .ObjectiveGetAll (), cmpopts .SortSlices (func (a , b * v1alpha2.InferenceObjective ) bool {
208+ if diff := cmp .Diff (params .wantObjectives , store .ObjectiveGetAll (), cmpopts .SortSlices (func (a , b * v1alpha2.InferenceObjective ) bool {
209209 return a .Name < b .Name
210210 })); diff != "" {
211211 return "models:" + diff
@@ -328,8 +328,8 @@ type xDiffStoreParams struct {
328328 wantObjectives []* v1alpha2.InferenceObjective
329329}
330330
331- func xDiffStore (datastore datastore.Datastore , params xDiffStoreParams ) string {
332- gotPool , _ := datastore .PoolGet ()
331+ func xDiffStore (store datastore.Datastore , params xDiffStoreParams ) string {
332+ gotPool , _ := store .PoolGet ()
333333 if gotPool == nil && params .wantPool == nil {
334334 return ""
335335 }
@@ -343,7 +343,7 @@ func xDiffStore(datastore datastore.Datastore, params xDiffStoreParams) string {
343343 params .wantPods = []string {}
344344 }
345345 gotPods := []string {}
346- for _ , pm := range datastore .PodList (backendmetrics .AllPodsPredicate ) {
346+ for _ , pm := range store .PodList (datastore .AllPodsPredicate ) {
347347 gotPods = append (gotPods , pm .GetPod ().NamespacedName .Name )
348348 }
349349 if diff := cmp .Diff (params .wantPods , gotPods , cmpopts .SortSlices (func (a , b string ) bool { return a < b })); diff != "" {
@@ -355,7 +355,7 @@ func xDiffStore(datastore datastore.Datastore, params xDiffStoreParams) string {
355355 params .wantObjectives = []* v1alpha2.InferenceObjective {}
356356 }
357357
358- if diff := cmp .Diff (params .wantObjectives , datastore .ObjectiveGetAll (), cmpopts .SortSlices (func (a , b * v1alpha2.InferenceObjective ) bool {
358+ if diff := cmp .Diff (params .wantObjectives , store .ObjectiveGetAll (), cmpopts .SortSlices (func (a , b * v1alpha2.InferenceObjective ) bool {
359359 return a .Name < b .Name
360360 })); diff != "" {
361361 return "models:" + diff
0 commit comments