@@ -20,9 +20,7 @@ func TestUpdateDatastore_LLMServerPoolReconciler(t *testing.T) {
20
20
datastore : K8sDatastore {
21
21
LLMServerPool : & v1alpha1.LLMServerPool {
22
22
Spec : v1alpha1.LLMServerPoolSpec {
23
- ModelServerSelector : metav1.LabelSelector {
24
- MatchLabels : map [string ]string {"app" : "vllm" },
25
- },
23
+ ModelServerSelector : map [string ]string {"app" : "vllm" },
26
24
},
27
25
ObjectMeta : metav1.ObjectMeta {
28
26
Name : "test-pool" ,
@@ -32,9 +30,7 @@ func TestUpdateDatastore_LLMServerPoolReconciler(t *testing.T) {
32
30
},
33
31
incomingServerPool : & v1alpha1.LLMServerPool {
34
32
Spec : v1alpha1.LLMServerPoolSpec {
35
- ModelServerSelector : metav1.LabelSelector {
36
- MatchLabels : map [string ]string {"app" : "not-vllm" },
37
- },
33
+ ModelServerSelector : map [string ]string {"app" : "not-vllm" },
38
34
},
39
35
ObjectMeta : metav1.ObjectMeta {
40
36
Name : "test-pool" ,
@@ -44,9 +40,7 @@ func TestUpdateDatastore_LLMServerPoolReconciler(t *testing.T) {
44
40
want : K8sDatastore {
45
41
LLMServerPool : & v1alpha1.LLMServerPool {
46
42
Spec : v1alpha1.LLMServerPoolSpec {
47
- ModelServerSelector : metav1.LabelSelector {
48
- MatchLabels : map [string ]string {"app" : "not-vllm" },
49
- },
43
+ ModelServerSelector : map [string ]string {"app" : "not-vllm" },
50
44
},
51
45
ObjectMeta : metav1.ObjectMeta {
52
46
Name : "test-pool" ,
@@ -60,9 +54,7 @@ func TestUpdateDatastore_LLMServerPoolReconciler(t *testing.T) {
60
54
datastore : K8sDatastore {
61
55
LLMServerPool : & v1alpha1.LLMServerPool {
62
56
Spec : v1alpha1.LLMServerPoolSpec {
63
- ModelServerSelector : metav1.LabelSelector {
64
- MatchLabels : map [string ]string {"app" : "vllm" },
65
- },
57
+ ModelServerSelector : map [string ]string {"app" : "vllm" },
66
58
},
67
59
ObjectMeta : metav1.ObjectMeta {
68
60
Name : "test-pool" ,
@@ -72,9 +64,7 @@ func TestUpdateDatastore_LLMServerPoolReconciler(t *testing.T) {
72
64
},
73
65
incomingServerPool : & v1alpha1.LLMServerPool {
74
66
Spec : v1alpha1.LLMServerPoolSpec {
75
- ModelServerSelector : metav1.LabelSelector {
76
- MatchLabels : map [string ]string {"technically" : "this-should-never-happen" },
77
- },
67
+ ModelServerSelector : map [string ]string {"technically" : "this-should-never-happen" },
78
68
},
79
69
ObjectMeta : metav1.ObjectMeta {
80
70
Name : "test-pool" ,
@@ -84,9 +74,7 @@ func TestUpdateDatastore_LLMServerPoolReconciler(t *testing.T) {
84
74
want : K8sDatastore {
85
75
LLMServerPool : & v1alpha1.LLMServerPool {
86
76
Spec : v1alpha1.LLMServerPoolSpec {
87
- ModelServerSelector : metav1.LabelSelector {
88
- MatchLabels : map [string ]string {"app" : "vllm" },
89
- },
77
+ ModelServerSelector : map [string ]string {"app" : "vllm" },
90
78
},
91
79
ObjectMeta : metav1.ObjectMeta {
92
80
Name : "test-pool" ,
0 commit comments