Merge pull request #85558 from yutedz/svc-port-str
Output port as number in error message Kubernetes-commit: 2b9aeabf915365a6a694b7a139bc5f9c02272ee6
This commit is contained in:
commit
e01ab74ca9
|
|
@ -35,7 +35,7 @@ func findServicePort(svc *v1.Service, port int32) (*v1.ServicePort, error) {
|
|||
return &svcPort, nil
|
||||
}
|
||||
}
|
||||
return nil, errors.NewServiceUnavailable(fmt.Sprintf("no service port %q found for service %q", port, svc.Name))
|
||||
return nil, errors.NewServiceUnavailable(fmt.Sprintf("no service port %d found for service %q", port, svc.Name))
|
||||
}
|
||||
|
||||
// ResourceLocation returns a URL to which one can send traffic for the specified service.
|
||||
|
|
|
|||
Loading…
Reference in New Issue