Skip to content

Commit

Permalink
[Chore] specify the capacity on calling make (#2719)
Browse files Browse the repository at this point in the history
Signed-off-by: fscnick <[email protected]>
  • Loading branch information
fscnick authored Jan 9, 2025
1 parent 82e2554 commit 5db3012
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ray-operator/controllers/ray/common/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ func BuildServeService(ctx context.Context, rayService rayv1.RayService, rayClus

// `portsInt` is a map of port names to port numbers, while `ports` is a list of ServicePort objects
portsInt := getServicePorts(rayCluster)
ports := []corev1.ServicePort{}
ports := make([]corev1.ServicePort, 0, 1)
for name, port := range portsInt {
if name == utils.ServingPortName {
svcPort := corev1.ServicePort{Name: name, Port: port}
Expand Down Expand Up @@ -245,7 +245,7 @@ func BuildServeService(ctx context.Context, rayService rayv1.RayService, rayClus
log.Info("port with name 'serve' already added. Ignoring user provided ports for serve service")
serveService.Spec.Ports = ports
} else {
ports := []corev1.ServicePort{}
ports := make([]corev1.ServicePort, 0, 1)
for _, port := range serveService.Spec.Ports {
if port.Name == utils.ServingPortName {
svcPort := corev1.ServicePort{Name: port.Name, Port: port.Port}
Expand Down

0 comments on commit 5db3012

Please sign in to comment.