@@ -171,7 +171,7 @@ var _ = Describe("NemoEntitystore Controller", func() {
171
171
Expose : appsv1alpha1.Expose {
172
172
Service : appsv1alpha1.Service {
173
173
Type : corev1 .ServiceTypeClusterIP ,
174
- Port : 8000 ,
174
+ Port : ptr. To [ int32 ]( 8000 ) ,
175
175
Annotations : map [string ]string {
176
176
"annotation-key-specific" : "service" ,
177
177
},
@@ -329,7 +329,7 @@ var _ = Describe("NemoEntitystore Controller", func() {
329
329
Expect (ingress .Namespace ).To (Equal (nemoEntitystore .GetNamespace ()))
330
330
Expect (ingress .Annotations ["annotation-key" ]).To (Equal ("annotation-value" ))
331
331
Expect (ingress .Annotations ["annotation-key-specific" ]).To (Equal ("ingress" ))
332
- Expect (service .Spec .Ports [0 ].Name ).To (Equal ("service-port " ))
332
+ Expect (service .Spec .Ports [0 ].Name ).To (Equal ("api " ))
333
333
Expect (service .Spec .Ports [0 ].Port ).To (Equal (int32 (8000 )))
334
334
// HPA should be deployed
335
335
hpa := & autoscalingv2.HorizontalPodAutoscaler {}
@@ -349,7 +349,7 @@ var _ = Describe("NemoEntitystore Controller", func() {
349
349
Expect (sm .Namespace ).To (Equal (nemoEntitystore .GetNamespace ()))
350
350
Expect (sm .Annotations ["annotation-key" ]).To (Equal ("annotation-value" ))
351
351
Expect (sm .Annotations ["annotation-key-specific" ]).To (Equal ("service-monitor" ))
352
- Expect (sm .Spec .Endpoints [0 ].Port ).To (Equal ("service-port " ))
352
+ Expect (sm .Spec .Endpoints [0 ].Port ).To (Equal ("api " ))
353
353
Expect (sm .Spec .Endpoints [0 ].ScrapeTimeout ).To (Equal (monitoringv1 .Duration ("30s" )))
354
354
Expect (sm .Spec .Endpoints [0 ].Interval ).To (Equal (monitoringv1 .Duration ("1m" )))
355
355
// Deployment should be created
0 commit comments