@@ -61,7 +61,7 @@ func TestPodReconciler(t *testing.T) {
6161 existingPods : []* corev1.Pod {basePod1 , basePod2 },
6262 pool : & v1.InferencePool {
6363 Spec : v1.InferencePoolSpec {
64- TargetPorts : []v1.Port {{Number : int32 (8000 )}},
64+ TargetPorts : []v1.Port {{Number : v1 . PortNumber ( int32 (8000 ) )}},
6565 Selector : v1.LabelSelector {
6666 MatchLabels : map [v1.LabelKey ]v1.LabelValue {
6767 "some-key" : "some-val" ,
@@ -79,7 +79,7 @@ func TestPodReconciler(t *testing.T) {
7979 existingPods : []* corev1.Pod {basePod1 , basePod2 },
8080 pool : & v1.InferencePool {
8181 Spec : v1.InferencePoolSpec {
82- TargetPorts : []v1.Port {{Number : int32 (8000 )}},
82+ TargetPorts : []v1.Port {{Number : v1 . PortNumber ( int32 (8000 ) )}},
8383 Selector : v1.LabelSelector {
8484 MatchLabels : map [v1.LabelKey ]v1.LabelValue {
8585 "some-key" : "some-val" ,
@@ -97,7 +97,7 @@ func TestPodReconciler(t *testing.T) {
9797 existingPods : []* corev1.Pod {basePod1 , basePod2 },
9898 pool : & v1.InferencePool {
9999 Spec : v1.InferencePoolSpec {
100- TargetPorts : []v1.Port {{Number : int32 (8000 )}},
100+ TargetPorts : []v1.Port {{Number : v1 . PortNumber ( int32 (8000 ) )}},
101101 Selector : v1.LabelSelector {
102102 MatchLabels : map [v1.LabelKey ]v1.LabelValue {
103103 "some-key" : "some-val" ,
@@ -116,7 +116,7 @@ func TestPodReconciler(t *testing.T) {
116116 existingPods : []* corev1.Pod {basePod1 , basePod2 },
117117 pool : & v1.InferencePool {
118118 Spec : v1.InferencePoolSpec {
119- TargetPorts : []v1.Port {{Number : int32 (8000 )}},
119+ TargetPorts : []v1.Port {{Number : v1 . PortNumber ( int32 (8000 ) )}},
120120 Selector : v1.LabelSelector {
121121 MatchLabels : map [v1.LabelKey ]v1.LabelValue {
122122 "some-key" : "some-val" ,
@@ -132,7 +132,7 @@ func TestPodReconciler(t *testing.T) {
132132 existingPods : []* corev1.Pod {basePod1 , basePod2 },
133133 pool : & v1.InferencePool {
134134 Spec : v1.InferencePoolSpec {
135- TargetPorts : []v1.Port {{Number : int32 (8000 )}},
135+ TargetPorts : []v1.Port {{Number : v1 . PortNumber ( int32 (8000 ) )}},
136136 Selector : v1.LabelSelector {
137137 MatchLabels : map [v1.LabelKey ]v1.LabelValue {
138138 "some-key" : "some-val" ,
@@ -149,7 +149,7 @@ func TestPodReconciler(t *testing.T) {
149149 existingPods : []* corev1.Pod {basePod1 , basePod2 },
150150 pool : & v1.InferencePool {
151151 Spec : v1.InferencePoolSpec {
152- TargetPorts : []v1.Port {{Number : int32 (8000 )}},
152+ TargetPorts : []v1.Port {{Number : v1 . PortNumber ( int32 (8000 ) )}},
153153 Selector : v1.LabelSelector {
154154 MatchLabels : map [v1.LabelKey ]v1.LabelValue {
155155 "some-key" : "some-val" ,
@@ -167,7 +167,7 @@ func TestPodReconciler(t *testing.T) {
167167 existingPods : []* corev1.Pod {basePod1 , basePod2 },
168168 pool : & v1.InferencePool {
169169 Spec : v1.InferencePoolSpec {
170- TargetPorts : []v1.Port {{Number : int32 (8000 )}},
170+ TargetPorts : []v1.Port {{Number : v1 . PortNumber ( int32 (8000 ) )}},
171171 Selector : v1.LabelSelector {
172172 MatchLabels : map [v1.LabelKey ]v1.LabelValue {
173173 "some-key" : "some-val" ,
0 commit comments