Skip to content

Commit 2b9aeab

Browse files
authored
Merge pull request kubernetes#85558 from yutedz/svc-port-str
Output port as number in error message
2 parents a812880 + c224a6d commit 2b9aeab

File tree

1 file changed

+1
-1
lines changed
  • staging/src/k8s.io/apiserver/pkg/util/proxy

1 file changed

+1
-1
lines changed

staging/src/k8s.io/apiserver/pkg/util/proxy/proxy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func findServicePort(svc *v1.Service, port int32) (*v1.ServicePort, error) {
3535
return &svcPort, nil
3636
}
3737
}
38-
return nil, errors.NewServiceUnavailable(fmt.Sprintf("no service port %q found for service %q", port, svc.Name))
38+
return nil, errors.NewServiceUnavailable(fmt.Sprintf("no service port %d found for service %q", port, svc.Name))
3939
}
4040

4141
// ResourceLocation returns a URL to which one can send traffic for the specified service.

0 commit comments

Comments
 (0)