mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 11:21:47 +00:00
Merge pull request #112247 from prometherion/issues/112246
Wrong description for function ResolveEndpoint
This commit is contained in:
commit
4c91b7b5a6
@ -38,7 +38,7 @@ func findServicePort(svc *v1.Service, port int32) (*v1.ServicePort, error) {
|
||||
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.
|
||||
// ResolveEndpoint returns a URL to which one can send traffic for the specified service.
|
||||
func ResolveEndpoint(services listersv1.ServiceLister, endpoints listersv1.EndpointsLister, namespace, id string, port int32) (*url.URL, error) {
|
||||
svc, err := services.Services(namespace).Get(id)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user